Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Dashboard: Traffic Graph *FIXED*

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    18 Posts 4 Posters 7.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      chudy
      last edited by

      Traffic Graph slower than its refresh interval.
      LAN graph delayed than WAN graph.

      2.0-BETA4 (i386)
      built on Sun Sep 26 20:34:55 EDT 2010
      FreeBSD 8.1-RELEASE-p1

      1 Reply Last reply Reply Quote 0
      • R
        roi
        last edited by

        I also see the delay issue and it's not only LAN & WAN.
        I get it between LAN and OPT1 that is also connected as WAN

        Version 2.0-BETA4 (i386)
        AMD Athlon™ XP 2000+

        1 Reply Last reply Reply Quote 0
        • C
          c0urier
          last edited by

          I can confirm this one:
          2.0-BETA4  (amd64)
          built on Thu Oct 7 23:46:07 UTC 2010

          pfsense: 2.1.5-RELEASE, AMD64
          Running on: MB/CPU: ASUS P8H77-I / Core i3-2120T | MEM: 8GB DDR3 | HDD: WD Blue 120GB 2.5" SATA | WAN/LAN: Fujitsu D2735-2 – Intel® chip 82576NS | WLAN: Realtek® 8111F PCIe | Connection: 1000/1000Mbit (Bredband2.com)
          [/U

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            How much slower? Does it change if you adjust the refresh interval?

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • R
              roi
              last edited by

              It does not make a change.
              I will screen capture and upload a pic later.

              Version 2.0-BETA4 (i386)
              AMD Athlon™ XP 2000+

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                The way that the widgets work, the updates are triggered every <x>seconds, so it may also be that because the data request and drawing take some time, it is delayed a little on drawing but the actual updates happen as soon as possible.

                This would probably be more apparent on embedded systems.</x>

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • C
                  c0urier
                  last edited by

                  Hi jimp,

                  It works fine on pfsense 1.2.3 (i386) - But on 2.0-BETA4 (amd64) built on Mon Oct 11 14:48:49 UTC 2010 it does not work and not any of the earlier releases.

                  pfsense: 2.1.5-RELEASE, AMD64
                  Running on: MB/CPU: ASUS P8H77-I / Core i3-2120T | MEM: 8GB DDR3 | HDD: WD Blue 120GB 2.5" SATA | WAN/LAN: Fujitsu D2735-2 – Intel® chip 82576NS | WLAN: Realtek® 8111F PCIe | Connection: 1000/1000Mbit (Bredband2.com)
                  [/U

                  1 Reply Last reply Reply Quote 0
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    You need to give a lot more detail than "it does not work".

                    As much detail as possible, how much of delay, how it was measured, etc, etc. A vague problem description is nobody's friend.

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 0
                    • C
                      chudy
                      last edited by

                      approximately(don't have milisec timer)
                      5sec refresh interval = 10sec graph update (CPU usages 1%)
                      1sec refresh interval = 5sec graph update (CPU usages 1%)

                      wan vs lan graph
                      lan delayed 3/4 of the graph(out of sync)

                      same machine used from pfsense123 to pfsense20

                      1 Reply Last reply Reply Quote 0
                      • jimpJ
                        jimp Rebel Alliance Developer Netgate
                        last edited by

                        Is that 10 seconds every update, or only the first update?

                        The initial updates don't happen until 5-10 seconds after the index page loads. The AJAX updates don't immediately start to fire, or it consumes too much CPU.

                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                        Need help fast? Netgate Global Support!

                        Do not Chat/PM for help!

                        1 Reply Last reply Reply Quote 0
                        • C
                          chudy
                          last edited by

                          Updates until the wan full graph.
                          lan 3/4 of wan. both 1sec & 5sec refresh interval.

                          anyway whats important for me is the sync of wan & lan

                          Dashboard displayed:
                          Traffic Graphs only

                          1 Reply Last reply Reply Quote 0
                          • jimpJ
                            jimp Rebel Alliance Developer Netgate
                            last edited by

                            Looking at the code, we introduce a 3 second delay between graph updates on purpose. Probably to let embedded systems catch up, but the logic isn't quite right because over time it just gets farther and farther apart. I'll see if there is something that can be done.

                            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                            Need help fast? Netgate Global Support!

                            Do not Chat/PM for help!

                            1 Reply Last reply Reply Quote 0
                            • jimpJ
                              jimp Rebel Alliance Developer Netgate
                              last edited by

                              This should be somewhat fixed now. I made it so the graph updates are still staggered a little, but only the initial update is delayed, not each subsequent update as well.

                              They all stay in line for me now, but it might be interesting to know if it works well on embedded systems (I don't have my alix imaged and ready to test at the moment). It may not be in the next snapshot, but should be in the one after that.

                              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                              Need help fast? Netgate Global Support!

                              Do not Chat/PM for help!

                              1 Reply Last reply Reply Quote 0
                              • R
                                roi
                                last edited by

                                On  Oct 10 22:01:17 build it's out of sync.
                                I'll see when the next will come out.

                                Maybe put a tik for selecting if it's an embedded or standard.
                                on my Athlon 2000+ CPU was still 1% when I set the update rate to 1 sec with two graph's open.

                                Version 2.0-BETA4 (i386)
                                AMD Athlon™ XP 2000+

                                1 Reply Last reply Reply Quote 0
                                • C
                                  chudy
                                  last edited by

                                  @jimp
                                  Would you be kind to give us some patch?

                                  1 Reply Last reply Reply Quote 0
                                  • C
                                    c0urier
                                    last edited by

                                    Hi jimp,

                                    It updates after the interval you set now - Which means it can update every second - Thanks!

                                    @ chudy, I've upgraded to the latest snapshot and it works there: 2.0-BETA4  (amd64) built on Tue Oct 12 06:44:49 UTC 2010

                                    pfsense: 2.1.5-RELEASE, AMD64
                                    Running on: MB/CPU: ASUS P8H77-I / Core i3-2120T | MEM: 8GB DDR3 | HDD: WD Blue 120GB 2.5" SATA | WAN/LAN: Fujitsu D2735-2 – Intel® chip 82576NS | WLAN: Realtek® 8111F PCIe | Connection: 1000/1000Mbit (Bredband2.com)
                                    [/U

                                    1 Reply Last reply Reply Quote 0
                                    • jimpJ
                                      jimp Rebel Alliance Developer Netgate
                                      last edited by

                                      This may be enough:
                                      https://rcs.pfsense.org/projects/pfsense/repos/mainline/commits/9228de6c4d231ab1325014e8341f5d0f981a0af0

                                      Though I did this bit of whitespace fixing first, so you might need it:
                                      https://rcs.pfsense.org/projects/pfsense/repos/mainline/commits/719dcffb6e6bef6e911fe570067699917cccbc84

                                      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                      Need help fast? Netgate Global Support!

                                      Do not Chat/PM for help!

                                      1 Reply Last reply Reply Quote 0
                                      • R
                                        roi
                                        last edited by

                                        With snap built on Tue Oct 12 02:05:23 EDT 2010 it seem to be OK.

                                        Version 2.0-BETA4 (i386)
                                        AMD Athlon™ XP 2000+

                                        1 Reply Last reply Reply Quote 0
                                        • First post
                                          Last post
                                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.