Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Dec 2001 16:47:24 +0100 (CET)
From:      Michal Mertl <mime@traveller.cz>
To:        "James E. Housley" <jeh@FreeBSD.ORG>
Cc:        arch@FreeBSD.ORG
Subject:   Re: 64 bit counters
Message-ID:  <Pine.BSF.4.41.0112261644370.20665-100000@prg.traveller.cz>
In-Reply-To: <3C29D449.7EC7EFCF@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 26 Dec 2001, James E. Housley wrote:

> Michal Mertl wrote:
> >
> > I would expect this topic already popped on the list but search didn't
> > revealed anything.
> >
> > As a hostmaster of several FreeBSD servers I noticed the problem of some
> > counters overflowing (e.g. byte counters for IP/TCP/UDP overflow in
> > several days on my systems). I looked at the source code and it seems
>
> On a system that I have access to with GigE cards, running constantly
> over 200Mb/s, the netstat -i counters will overflow on the order of once
> every minute or two.  As an aside questions.  When we update the network
> interface to use the larger 64bit counters, will external programs like
> SNMP be able to function with the larger sizes or will these have
> problems.  I am not sugesting we don't do this, I just want to know.
>

SNMPv3 has 64bit counter support.

Programs accessing the counters should include the file which declares the
struct and so they will know that members are u_int64_t. If you use it
like int compiler should complain.

> Jim
>

-- 
Michal Mertl
mime@traveller.cz



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.41.0112261644370.20665-100000>