From owner-freebsd-net Mon Sep 9 9:16:31 2002 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 188C437B400 for ; Mon, 9 Sep 2002 09:16:28 -0700 (PDT) Received: from mailhub.fokus.gmd.de (mailhub.fokus.gmd.de [193.174.154.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC92743E6E for ; Mon, 9 Sep 2002 09:16:26 -0700 (PDT) (envelope-from brandt@fokus.gmd.de) Received: from beagle (beagle [193.175.132.100]) by mailhub.fokus.gmd.de (8.11.6/8.11.6) with ESMTP id g89GGNh14627; Mon, 9 Sep 2002 18:16:23 +0200 (MEST) Date: Mon, 9 Sep 2002 18:16:23 +0200 (CEST) From: Harti Brandt To: Andre Oppermann Cc: Harti Brandt , Petr Holub , Subject: Re: 32 bit couters in netstat In-Reply-To: <3D7CC7D3.55BBB7BA@pipeline.ch> Message-ID: <20020909181135.K30835-100000@beagle.fokus.gmd.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, 9 Sep 2002, Andre Oppermann wrote: AO>Harti Brandt wrote: AO>> AO>> On Mon, 9 Sep 2002, Petr Holub wrote: AO>> AO>> PH>> > I've just found that netstat in FreeBSD 4.4 has just 32 bit couters AO>> PH>> > (compared to 64 bit counters in NetBSD), at least for Ibytes and Obytes. AO>> PH>> > Is there any improvement in this respect in -STABLE or in -CURRENT? AO>> PH>> AO>> PH>> No because certain people argue that having a 64 bit counter slows AO>> PH>> down the machine to the level of a 386SX-16 and who needs large AO>> PH>> counters anyway... AO>> PH> AO>> PH>I don't think NetBSD is slow that way ;o))). AO>> AO>> If you search the archives you will find the arguments. As far as I AO>> remember the problem is to do the counter update atomically correct. AO> AO>Yes. Doing a 64 bit atomically add even on UP machines takes a couple AO>a CPU cycles more. But does that matter with 2.8GHz machines? Not everyone has the money to buy a new machine each time one comes out. It may matter for people having a 486 in the corner to do their local routing. It may also matter for people that never look at their counters. But as I said already, refer to the archives. harti -- harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.gmd.de, brandt@fokus.fhg.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message