Monthly bandwidth does not sum correctly

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Eric
Site Admin
Posts: 1443
Joined: Sat Jun 14, 2008 1:14 pm

Re: Monthly bandwidth does not sum correctly

Post by Eric »

I found (and fixed) one issue that may be responsible for this problem. Because of the extremely intermittent nature of this issue I can't be sure I got the bug that's been causing all the trouble. I just know I found and fixed a bug that could potentially cause this.

There was a problem in the adjust_ip_for_backwards_time_shift() function of the kernel bandwidth module, so that if there was a backwards shift in the time from one month to the previous one, the old month's bandwidth would get zeroed. There are multiple situations that could potentially result in such a shift, most prominently if there is a mis-match in the time of the router and the NTP time server it is being synced to.

I don't know for sure if this will fix the primary issue. The routine that got fixed is inherently an error correcting routine and I don't know how often that error is showing up. The real problem may be elsewhere. However, I plan on doing a new release with this fix soon and we can see if the error starts showing up again or not.

I'm not confident enough to claim I deserve the bounty yet -- and if this isn't the real problem and someone comes can (1) show that something else is the problem and (2) provide a fix for it... then the bounty is still theirs.

User avatar
dillyhammer
Posts: 7
Joined: Tue Jan 11, 2011 3:07 pm

Re: Monthly bandwidth does not sum correctly

Post by dillyhammer »

Aha! Progress!

Well this is encouraging. Kudos for taking another run at it, and looking through the diffs, a significant run to boot.

Looks like this $100 bill has your name written all over it. Peanuts, I know, but... $100 worth.

:)

Mike

User avatar
dillyhammer
Posts: 7
Joined: Tue Jan 11, 2011 3:07 pm

Re: Monthly bandwidth does not sum correctly

Post by dillyhammer »

Eric, is this fixed then? Sure looks like it.

:D

Mike

Post Reply