LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-07-2003, 10:57 PM   #1
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Rep: Reputation: 30
ifconfig


Anyone know anything about ifconfig and why it resets the downloaded data and uploaded data after about 3 gigs or so? I'd like to keep a running total but I don't know if ifconfig can do that. I'd e-mail the developer but I don't know an e-mail for them... Let me know what you think.
 
Old 01-08-2003, 01:30 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I do believe there is a problem where the counter rolls over at some point.
 
Old 01-08-2003, 01:44 AM   #3
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Original Poster
Rep: Reputation: 30
Fixable?

Is this something that is somehow patchable or is there a fix out for it? Not that it would help, but would contacting the developers help in this issue? I'm just looking to get an accurate count of how much I've downloaded/uploaded just using ifconfig.
 
Old 01-08-2003, 03:44 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I'm not sure if there was a fix for it or not. I can't seem to find what the actual problem is, although I believe it is due to them using the wrong type of variable or something like that. I have seen it mentioned in a couple of documents, but I have forgotten where.


There is some talk about it not being very accurate as well. I have not tested this.
 
Old 01-08-2003, 06:42 AM   #5
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 46
I think the numbers you are talking about are really a kernel issue. The ifconfig program stats are simply reporting the contents of /proc/net/dev from the kernel. Try the following command:

cat /proc/net/dev

The text reported is the same values that ifconfig reports but in a raw data form. Fairly difficult to read.

The kernel is probably using a double for the data type at present, in order to even show a 3 GByte number. But whatever data type is chosen, it would rollover at some point anyway. All data types have a min and max value.

As for error margin, I would think the byte count is accurate. However, the packet count is difficult to use because a packet can vary in size. I think the max packet size is something like 1500 bytes and the min is 64 bytes or close to that range.
 
Old 01-08-2003, 03:46 PM   #6
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Original Poster
Rep: Reputation: 30
I see the output is rather nasty... so is it worth it to persue a fix for this to keep a running total? or should I just forget about it all together. RIght now I'm not even sure what ifconfig is packaged with, though I havn't looked much.
 
Old 01-08-2003, 04:30 PM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
it could be that the latest kernels have been fixed, I have not seen anything saying it has though. I guess it's not top priority.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
connecting /sbin/ifconfig to bash command ifconfig flammable2 Fedora 4 11-12-2005 07:58 AM
Ifconfig Eugney Slackware 6 07-07-2005 02:08 PM
Ifconfig mrodriguez Linux - Newbie 2 02-16-2005 12:17 PM
Oh where or where has ifconfig gone thotFree Linux - Software 3 11-13-2003 12:27 AM
Ifconfig ! mesta Linux - Software 2 02-04-2003 09:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration