[net-tools-devel] InOctets and OutOctets for IpExt going negative - known issue?
Linux networking base tools
Brought to you by:
eckes
|
From: Rick J. <ric...@hp...> - 2012-03-20 21:39:56
|
Hi -
In looking at some netstat -s output under Ubuntu (11.04 and 11.10) I've
noticed that under IpExt the InOctets and/or OutOctets are going
negative. It looks like something Linux is exporting as a 64-bit
unsigned value is being parsed as if it were a signed, 32-bit value:
This is what I see in one instance in /proc/net/netstat:
...
IpExt: InNoRoutes InTruncatedPkts InMcastPkts OutMcastPkts InBcastPkts
OutBcastPkts InOctets OutOctets InMcastOctets OutMcastOctets
InBcastOctets OutBcastOctets
IpExt: 0 0 611 74 2687 0 146371788 38184167287 106589 5257 313930 0
and from the netstat -s command:
...
IpExt:
InMcastPkts: 620
OutMcastPkts: 75
InBcastPkts: 2707
InOctets: 146459415
OutOctets: -470470285
InMcastOctets: 108486
OutMcastOctets: 5289
InBcastOctets: 316740
is this an already known issue? Looks like there are other octet
counters being treated as 32-bit unsigned:
raj@tardy:~/netperf2_trunk$ netstat -s | grep backlog
2317758055 bytes directly in process context from backlog
raj@tardy:~/netperf2_trunk$ netstat -s | grep backlog
3241897575 bytes directly in process context from backlog
raj@tardy:~/netperf2_trunk$ netstat -s | grep backlog
3852168807 bytes directly in process context from backlog
raj@tardy:~/netperf2_trunk$ netstat -s | grep backlog
247754343 bytes directly in process context from backlog
(that was with a loopback netperf TCP_STREAM running)
rick jones
|