Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Apr 2001 21:06:35 -0400 (EDT)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        Alfred Perlstein <alfred@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/sys mbuf.h src/sys/kern uipc_mbuf.c
Message-ID:  <200104040106.VAA26103@khavrinen.lcs.mit.edu>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Tue, 3 Apr 2001 17:35:29 -0700, Alfred Perlstein <alfred@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104040106.VAA26103>