Dashboard: Traffic Graph *FIXED*
Traffic Graph slower than its refresh interval.
LAN graph delayed than WAN graph.
built on Sun Sep 26 20:34:55 EDT 2010
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
I can confirm this one:
built on Thu Oct 7 23:46:07 UTC 2010
How much slower? Does it change if you adjust the refresh interval?
It does not make a change.
I will screen capture and upload a pic later.
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>
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.
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.
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
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.
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
Traffic Graphs only
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.
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.
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.
Would you be kind to give us some patch?
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
This may be enough:
Though I did this bit of whitespace fixing first, so you might need it:
With snap built on Tue Oct 12 02:05:23 EDT 2010 it seem to be OK.