Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jan 2002 22:33:51 +0100
From:      Jesper Skriver <jesper@FreeBSD.org>
To:        Terry Lambert <tlambert2@mindspring.com>
Cc:        Michal Mertl <mime@traveller.cz>, arch@freebsd.org
Subject:   Re: 64 bit counters again
Message-ID:  <20020113223351.A42689@FreeBSD.org>
In-Reply-To: <3C41F3FD.4ECC8CD@mindspring.com>; from tlambert2@mindspring.com on Sun, Jan 13, 2002 at 12:54:21PM -0800
References:  <Pine.BSF.4.41.0201132057560.62182-100000@prg.traveller.cz> <3C41F3FD.4ECC8CD@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jan 13, 2002 at 12:54:21PM -0800, Terry Lambert wrote:
> Michal Mertl wrote:
> > But anyway I continued on some work on STABLE (but believe lot of my work
> > could be used on CURRENT after some modification) and get kernel and world
> > building with 64 bit counters on network interfaces (struct if_data)
> > and in protocols (struct ipstat, tcpstat, udpstat, icmpstat, igmpstat).
> 
> Not to discount the value of this work, but...
> 
> 1)	It makes counting slower on 32 bit processors.
> 
> 2)	The values are not accessible from SNMP, which is
> 	limited to 32 bit counters.

SNMPv2 can do 64 bit counters ...

> 3)	While you could export these values as strings and
> 	not numbers over SNMP, doing this would mean you
> 	would need to use a MIB which was not a superset
> 	of an RFC'ed MIB.

One could also export them as 2 32 bit counters, one for the high 32
bits one for the low 32 bits, this is a common trick ...

> So it seems to me that the utility of this on 32 bit machines
> is incredibly limited (e.g. shell programs).
> 
> PS:	FWIW, I agree that these things should be 64 bits on
> 	64 bit architectures, even if they can only export
> 	the low 32 bits for SNMP.

/Jesper

-- 
Jesper Skriver, jesper(at)skriver(dot)dk  -  CCIE #5456
Work:    Network manager   @ AS3292 (Tele Danmark DataNetworks)
Private: FreeBSD committer @ AS2109 (A much smaller network ;-)

One Unix to rule them all, One Resolver to find them,
One IP to bring them all and in the zone to bind them.

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?20020113223351.A42689>