Re: [NET] 64 bit byte counter for 2.6.3

3 messages, 2 authors, 2004-02-19 · open the first message on its own page

Re: [NET] 64 bit byte counter for 2.6.3

From: Stephen Hemminger <hidden>
Date: 2004-02-18 18:17:26

On Wed, 18 Feb 2004 18:51:19 +0200
Markus Hästbacka [off-list ref] wrote:
Ok, Here's a patch for 64 bit byte counters for 2.6.3. For any intrested
users to try.

That means in english that the limit for RX bytes and TX bytes (in
ifconfig for example) is much higher than the old 4GB limit on 32 bit
systems.

Orginal patch by Miika Pekkarinen, ported forward from 2.5 by me.

Patch says 2.6.3-rc1, but patches cleanly on 2.6.3.

        Markus
Some quick comments:
 * Network changes gets discussed on netdev@oss.sgi.com 
 * 64 bit values are not atomic on 32 bit architectures 
 * wider values in /proc output risks breaking apps like ifconfig and netstat

Re: [NET] 64 bit byte counter for 2.6.3

From: Meelis Roos <hidden>
Date: 2004-02-19 08:14:47

SH>  * Network changes gets discussed on netdev@oss.sgi.com 
SH>  * 64 bit values are not atomic on 32 bit architectures 

Agree.

SH>  * wider values in /proc output risks breaking apps like ifconfig and netstat

This is probably not a problem here, ifconfig etc have been working fine
with non-wrapping numbers on sparc64 and other 64-bit machines.

-- 
Meelis Roos

Re: [NET] 64 bit byte counter for 2.6.3

From: Stephen Hemminger <hidden>
Date: 2004-02-19 17:27:19

On Thu, 19 Feb 2004 10:14:55 +0200
Meelis Roos [off-list ref] wrote:
SH>  * Network changes gets discussed on netdev@oss.sgi.com 
SH>  * 64 bit values are not atomic on 32 bit architectures 

Agree.

SH>  * wider values in /proc output risks breaking apps like ifconfig and netstat

This is probably not a problem here, ifconfig etc have been working fine
with non-wrapping numbers on sparc64 and other 64-bit machines.
Looking at current net-tools source, they are doing sscanf into a long-long-unsigned
value already.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help