From owner-freebsd-net@FreeBSD.ORG Tue Mar 16 00:01:46 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8424116A4CE; Tue, 16 Mar 2004 00:01:46 -0800 (PST) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 847E943D2F; Tue, 16 Mar 2004 00:01:45 -0800 (PST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) i2G7w5US041799 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Tue, 16 Mar 2004 08:58:11 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id i2G7vkhn069001 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 16 Mar 2004 08:57:47 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.10/8.12.10) with ESMTP id i2G7vkc5033949; Tue, 16 Mar 2004 08:57:46 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.10/8.12.11/Submit) id i2G7vdiV033907; Tue, 16 Mar 2004 08:57:39 +0100 (CET) (envelope-from ticso) Date: Tue, 16 Mar 2004 08:57:39 +0100 From: Bernd Walter To: Kris Kennaway Message-ID: <20040316075738.GL55325@cicely12.cicely.de> References: <2650.192.168.0.200.1079393908.squirrel@192.168.0.1> <20040316000544.GA33122@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040316000544.GA33122@xor.obsecurity.org> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=ham version=2.63 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on cicely12.cicely.de cc: Mike Jakubik cc: current@freebsd.org cc: net@freebsd.org Subject: Re: Byte counters reset at ~4GB X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Mar 2004 08:01:46 -0000 On Mon, Mar 15, 2004 at 04:05:44PM -0800, Kris Kennaway wrote: > On Mon, Mar 15, 2004 at 06:38:28PM -0500, Mike Jakubik wrote: > > Hello, > > > > 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. And on 64 bit platforms it is already 64 bit. -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de