Re: Byte counters reset at ~4GB

From: Marcel Moolenaar (marcel_at_xcllnt.net)
Date: 03/16/04

  • Next message: Andrew Thompson: "Re: Byte counters reset at ~4GB"
    Date: Mon, 15 Mar 2004 18:23:37 -0800
    To: Kris Kennaway <kris@obsecurity.org>
    
    

    On Mon, Mar 15, 2004 at 04:05:44PM -0800, Kris Kennaway wrote:
    > >
    > > 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.
    >
    > I think in the past it's been pointed out changing to a 64-bit
    > variable would slow down the code on non-64-bit architectures like the
    > venerable i386.

    Is there a particular reason I don't know about as to why we cannot
    introduce a MD typedef for counters like this (or even just "long")?
    I mean, if people make the statement that widening counters is not an
    option because it slows down some platforms, I must be missing the
    reason for it to be an all or none kind of issue.

    -- 
     Marcel Moolenaar	  USPA: A-39004		 marcel@xcllnt.net
    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
    

  • Next message: Andrew Thompson: "Re: Byte counters reset at ~4GB"

    Relevant Pages

    • Re: Byte counters reset at ~4GB
      ... >> see an accurate display of totals. ... It just seems pointless to even have ... Is there a particular reason I don't know about as to why we cannot ... if people make the statement that widening counters is not an ...
      (freebsd-current)
    • Re: Question for religious parents
      ... because you cannot face the truth, but because God is ... You said it was pointless to bother thinking critically, ... all faiths including atheism that are certain they are ... some reason, which I DO understand but can't articulate ...
      (misc.kids)
    • Re: Chuck Falconer top posting again
      ... But I do find myself being drawn into a pointless ... You get to read my pointless comments immediately and you ... Actually I had a subtler reason for quoting it all. ... I don't buy into the "local norms". ...
      (comp.arch.embedded)
    • Re: Runaway Global Warming Possible!
      ... figure of 34.4 accidental deaths per 100,000 people serving which would mean ... Likewise, the totals are low ... lives lost in Iraq is to compare accidental deaths in an army of over ... some reason the accidental deaths/100K rate reached ...
      (sci.geo.geology)
    • Re: Runaway Global Warming Possible!
      ... figure of 34.4 accidental deaths per 100,000 people serving which would mean ... Likewise, the totals are low ... lives lost in Iraq is to compare accidental deaths in an army of over ... some reason the accidental deaths/100K rate reached ...
      (sci.physics)