From owner-freebsd-arch Wed Dec 26 7:47:29 2001 Delivered-To: freebsd-arch@freebsd.org Received: from prg.traveller.cz (prg.traveller.cz [193.85.2.77]) by hub.freebsd.org (Postfix) with ESMTP id 485D737B419; Wed, 26 Dec 2001 07:47:26 -0800 (PST) Received: from prg.traveller.cz (localhost [127.0.0.1]) by prg.traveller.cz (8.12.1[KQ-CZ](1)/8.12.1/pukvis) with ESMTP id fBQFlOvT022811; Wed, 26 Dec 2001 16:47:25 +0100 (CET) Received: from localhost (mime@localhost) by prg.traveller.cz (8.12.1[KQ-CZ](1)/pukvis) with ESMTP id fBQFlOki022808; Wed, 26 Dec 2001 16:47:24 +0100 (CET) Date: Wed, 26 Dec 2001 16:47:24 +0100 (CET) From: Michal Mertl To: "James E. Housley" Cc: arch@FreeBSD.ORG Subject: Re: 64 bit counters In-Reply-To: <3C29D449.7EC7EFCF@FreeBSD.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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