Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 25 Oct 2014, 14:28
All times are UTC - 4
 Forum index » House Training » Bugs ( Submit bugs )
Network - Count stops at 2048MB
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
OscarTalks

Joined: 05 Feb 2012
Posts: 901
Location: London, England

PostPosted: Tue 13 May 2014, 13:31    Post_subject:  Network - Count stops at 2048MB  

Running Dpup Wheezy 3.5.2.11
Connected to the internet via eth0 to my router.
I noticed that sometimes the network_tray Blinky icon would stop blinking,
even though the internet connection was still working.
Restarting network_tray does not clear the problem,
nor does installing the newer network_tray 2.9 and icons.

Looking at the tooltip popup I see that the incoming Rx data count for the session freezes when it reaches 2048MB and it is at this point that the blinking also stops.
So I presume that this bug is not in network_tray itself, but in whatever application that count originates from. Where is this?

A reboot clears the Rx session count back to zero, the count for the month starts from the 2048MB number, the blinking works again, but the freeze will happen again when the session gets to another 2048MB.

Reproducing this issue requires having to download quite a lot of data so it is not easy to investgate. I will be testing to see if it also happens in other Puppies.

LATER:-
Count also freezes in Slacko 5.7 and the "incoming" part of the network_tray icon stops blinking.
count-freeze-slacko.jpg
 Description   Count frozen at 2048MB in Slacko 5.7
 Filesize   34.95 KB
 Viewed   365 Time(s)

count-freeze-slacko.jpg

network-count-freeze.jpg
 Description   Why does this Rx count number freeze at 2048MB ?
 Filesize   42.07 KB
 Viewed   380 Time(s)

network-count-freeze.jpg


_________________
Oscar in England

Back to top
View user's profile Send_private_message 
OscarTalks

Joined: 05 Feb 2012
Posts: 901
Location: London, England

PostPosted: Fri 23 May 2014, 10:00    Post_subject:  

Just wanted to give a little bump to this question.
Is there anyone out there who understands the code in the networking tools who might be able to fix this or explain it or something.

Am I overlooking something? Is it intentional that the count of the received (Rx) or transmitted (Tx) traffic stops when it reaches 2048 MB (2 GB)?

In this screenshot I am using Transmission to seed (upload) more data than I am downloading and you can see the Tx number (sent data) has reached 2048 and stopped there. The flashing of the rectangular part of the tray icon stops but the round globe bit still flashes because the Rx number has not hit 2048 yet.
stopped-Tx-count.jpg
 Description   Uploaded data has reached its 2048 ceiling
 Filesize   35.12 KB
 Viewed   321 Time(s)

stopped-Tx-count.jpg


_________________
Oscar in England

Back to top
View user's profile Send_private_message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11122
Location: Arizona USA

PostPosted: Fri 23 May 2014, 10:12    Post_subject:  

Huh. I just took a look at my network stats in Precise and it's stuck at 2048MB also. So the problem isn't peculiar to Wheezy.
Back to top
View user's profile Send_private_message 
rcrsn51


Joined: 05 Sep 2006
Posts: 9207
Location: Stratford, Ontario

PostPosted: Fri 23 May 2014, 11:29    Post_subject:  

It looks like the counters are reaching the limits of a long integer. Read here.

In the code for network_tray, BK bumped these variables up to long-long integer. But it doesn't appear to be working.

The resident compiler experts will need to comment further.
Back to top
View user's profile Send_private_message 
scsijon

Joined: 23 May 2007
Posts: 1047
Location: the australian mallee

PostPosted: Sun 25 May 2014, 20:27    Post_subject:  

it's been like this at least since wary4, and is still like this in wary/racy 5.5 and most others i've used or tested.

I've stopped taking notice as these stats seem to be a little ambiguous anyway as they relate to the current session and not the day.

Also the totals seem to not be the month but from when the particular day the port is initialized.

On top of that there seems to be no way the totals can be controlled, i.e. set which day they reset to zero and count from.
Back to top
View user's profile Send_private_message Visit_website 
rcrsn51


Joined: 05 Sep 2006
Posts: 9207
Location: Stratford, Ontario

PostPosted: Sun 25 May 2014, 22:10    Post_subject:  

This is another Puppy feature that falls under the category "If it doesn't do anything useful, maybe it's time to remove it".
Back to top
View user's profile Send_private_message 
disciple

Joined: 20 May 2006
Posts: 6449
Location: Auckland, New Zealand

PostPosted: Sun 25 May 2014, 22:12    Post_subject:  

But it would be useful if it worked...
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
Iguleder


Joined: 11 Aug 2009
Posts: 1923
Location: Israel, somewhere in the beautiful desert

PostPosted: Mon 26 May 2014, 10:14    Post_subject:  

I think I understand the problem - it's a signed long. Try to make it an unsigned long long.
_________________
My homepage
Back to top
View user's profile Send_private_message Visit_website MSNM 
ICQ 
rcrsn51


Joined: 05 Sep 2006
Posts: 9207
Location: Stratford, Ontario

PostPosted: Mon 26 May 2014, 10:51    Post_subject:  

Iguleder wrote:
I think I understand the problem - it's a signed long. Try to make it an unsigned long long.

rcrsn51 (above) wrote:
It looks like the counters are reaching the limits of a long integer. Read here. In the code for network_tray, BK bumped these variables up to long-long integer. But it doesn't appear to be working.

Does the Puppy environment recognize long-long? The only difference between signed long-long and unsigned long-long would be a power of 2.
Back to top
View user's profile Send_private_message 
Iguleder


Joined: 11 Aug 2009
Posts: 1923
Location: Israel, somewhere in the beautiful desert

PostPosted: Mon 26 May 2014, 13:40    Post_subject:  

Yes. GCC takes care of 64 bit math.

And a power of 2 is the explanation for this problem - this is the maximum value of a signed long.

_________________
My homepage
Back to top
View user's profile Send_private_message Visit_website MSNM 
ICQ 
rcrsn51


Joined: 05 Sep 2006
Posts: 9207
Location: Stratford, Ontario

PostPosted: Mon 26 May 2014, 14:57    Post_subject:  

Iguleder wrote:
Yes. GCC takes care of 64 bit math.

Then I suspect the problem is that BK's code is using atol instead of atoll.
Back to top
View user's profile Send_private_message 
scsijon

Joined: 23 May 2007
Posts: 1047
Location: the australian mallee

PostPosted: Fri 27 Jun 2014, 02:21    Post_subject: signed vs unsigned long-long  

ok I sort of understand,

however 'is / has' anyone 'fixing / fixed' the problem in at least woof-ce.

It would even be nice to have a simple pet so the rest of those that wnat to could update and fix the problem, if users wanted too.

pretty please.
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Bugs ( Submit bugs )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0689s ][ Queries: 13 (0.0054s) ][ GZIP on ]