Date: Mon, 09 Sep 2002 18:33:54 +0100 From: Peter V Coates-Bulgear <peter@newnet.co.uk> To: Harti Brandt <brandt@fokus.gmd.de> Cc: Andre Oppermann <oppermann@pipeline.ch>, Petr Holub <hopet@ics.muni.cz>, net@FreeBSD.ORG Subject: Re: 32 bit couters in netstat Message-ID: <3D7CDB82.1070906@newnet.co.uk> References: <20020909181135.K30835-100000@beagle.fokus.gmd.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Harti Brandt wrote: > 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. Anything that slows a machine down is bad news :( Even if only a few CPU cycles. I feel 32bits are just fine. Best to install some additional s/w if you really need 64 bit counters. Rather than force it on everyone. Thanks, Peter -- ____________________________________________________ Message scanned for viruses and dangerous content by <http://www.newnet.co.uk/av/> and believed to be clean To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D7CDB82.1070906>