From owner-freebsd-arch Sun Jan 13 13:33:55 2002 Delivered-To: freebsd-arch@freebsd.org Received: from freesbee.wheel.dk (freesbee.wheel.dk [193.162.159.97]) by hub.freebsd.org (Postfix) with ESMTP id D971D37B417 for ; Sun, 13 Jan 2002 13:33:52 -0800 (PST) Received: by freesbee.wheel.dk (Postfix, from userid 1001) id 8B4435DCD; Sun, 13 Jan 2002 22:33:51 +0100 (CET) Date: Sun, 13 Jan 2002 22:33:51 +0100 From: Jesper Skriver To: Terry Lambert Cc: Michal Mertl , arch@freebsd.org Subject: Re: 64 bit counters again Message-ID: <20020113223351.A42689@FreeBSD.org> Mail-Followup-To: Jesper Skriver , Terry Lambert , Michal Mertl , arch@freebsd.org References: <3C41F3FD.4ECC8CD@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C41F3FD.4ECC8CD@mindspring.com>; from tlambert2@mindspring.com on Sun, Jan 13, 2002 at 12:54:21PM -0800 X-PGP-Fingerprint: 6B88 9CE8 66E9 E631 C9C5 5EB4 22AB F0EC F956 1C31 X-PGP-Public-Key: http://freesbee.wheel.dk/~jesper/gpgkey.pub Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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