Re: Byte counters reset at ~4GB

From: Andre Oppermann <andre_at_freebsd.org>
Date: Tue, 16 Mar 2004 10:20:26 +0100
Max Laier wrote:
> On Mon, Mar 15, 2004 at 06:38:28PM -0500, Mike Jakubik wrote:
> 
>>Hello,
>>
>>It seems that the byte counters (derived from netstat -nbi) reset at
>>around 4 GB. Is there no way around this? It would be nice to be able to
>>see an accurate display of totals. It just seems pointless to even have
>>this, as 4 GB is just not that much anymore. I know this is a 32bit
>>limitation of the variable, but that's just bad coding in my opinion (no
>>offence intended), I mean there must be some way around this.
>>
>>Thank You.
> 
> 
> There is now: pf comes with 64bit statistic counters. For now you can put
> them on one interface only, but in future version there will be more
> flexible statistics. Additionally there are many accounting programs out
> there which utilize various existing (32bit) counters or the [i]pf[w]
> interfaces: sysutils/ipa or net-mgmt/ipacctd to name just two off the top of
> my head.

ipfw has 64bit counters since a long time ago (4.0 IIRC):

  65000 177297231221 62940387223290 allow ip from any to any

-- 
Andre
Received on Tue Mar 16 2004 - 00:20:29 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:47 UTC