4GB limit with netstat

Andy Gilligan andy at evo6.org
Mon May 19 22:33:42 PDT 2003


Hi,

Was wondering if there are any plans to update either the kernel
structures and/or netstat to show more than 4GB of traffic stats.

For example, on a 4.8-STABLE machine:

$ netstat -bI sis0
Name  Mtu   Network    Address            Ipkts Ierrs     Ibytes ...
sis0  1500  <Link#2> <mac-addr-hidden>  8789598     0 4103727771 ...
<non-relevant parts removed>

This shows that sis0 has received around 3.9GB.
Then, after transferring approximately 200MB:

$ netstat -bI sis0
Name  Mtu   Network    Address            Ipkts Ierrs     Ibytes ...
sis0  1500  <Link#2> <mac-addr-hidden>  9245518     0   18874368 ...

The Ibytes line has dropped from 3.9GB to 18MB.
It should of course be 4.1GB.

How much would need to change in either the kernel or netstat to
make >4GB possible?

Best regards
-
Andy


More information about the freebsd-stable mailing list