From owner-cvs-all Tue Apr 3 18: 6:46 2001 Delivered-To: cvs-all@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 6AC1737B725; Tue, 3 Apr 2001 18:06:38 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id VAA26103; Tue, 3 Apr 2001 21:06:35 -0400 (EDT) (envelope-from wollman) Date: Tue, 3 Apr 2001 21:06:35 -0400 (EDT) From: Garrett Wollman Message-Id: <200104040106.VAA26103@khavrinen.lcs.mit.edu> To: Alfred Perlstein Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys mbuf.h src/sys/kern uipc_mbuf.c In-Reply-To: <20010403173529.O12164@fw.wintelcom.net> References: <200104030315.f333FCX69312@freefall.freebsd.org> <20010403140457.B2952@electricjellyfish.net> <200104031813.f33ID4b58965@earth.backplane.com> <20010403194004.A15434@technokratis.com> <200104040020.f340Kgi74269@earth.backplane.com> <20010403173529.O12164@fw.wintelcom.net> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG < said: > While this is a good idea, it doesn't give us a consistant view of > the stats without additional atomic ops or critical regions. Atomic operations are likely to be cheaper on modern platforms than locking. In any case, you can simply keep per-CPU stats and then summarize when they are requested, which is even cheaper, since the stats are updated FAR more frequently than they are inspected. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message