From owner-freebsd-current Fri Jun 22 9:32:10 2001 Delivered-To: freebsd-current@freebsd.org Received: from technokratis.com (modemcable052.174-202-24.mtl.mc.videotron.ca [24.202.174.52]) by hub.freebsd.org (Postfix) with ESMTP id B3DE537B403 for ; Fri, 22 Jun 2001 09:32:07 -0700 (PDT) (envelope-from bmilekic@technokratis.com) Received: (from bmilekic@localhost) by technokratis.com (8.11.3/8.11.3) id f5MGWUH00762; Fri, 22 Jun 2001 12:32:30 -0400 (EDT) (envelope-from bmilekic) Date: Fri, 22 Jun 2001 12:32:30 -0400 From: Bosko Milekic To: Alfred Perlstein Cc: freebsd-current@FreeBSD.ORG Subject: Re: [HEADS-UP]: Mbuf allocator changes Message-ID: <20010622123230.A749@technokratis.com> References: <20010622024639.A40766@technokratis.com> <20010622015201.W4543@sneakerz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010622015201.W4543@sneakerz.org>; from bright@sneakerz.org on Fri, Jun 22, 2001 at 01:52:01AM -0500 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jun 22, 2001 at 01:52:01AM -0500, Alfred Perlstein wrote: > If you want accurate stats you should be able to lock the per-cpu > stats areas all at once as long as you always do it in a certain > order, basically, lock CPU 0, then 1, then 2, then 3, sum then > unlock. If correctness doesn't matter you can just walk the > per cpu stats locking each (or not) and assumulating the info. I don't need to lock the per-CPU locks to merely read the stats (unless I'm reall obsessed with getting consistent stats at the cost of performance every time a person issues `netstat -m' or, even worse, runs `systat -mbufs'). The main issue with the mbtypes stats, as I've previously mentionned, was that it is difficult to *update* them consistently. However, I think I have devised a way. I'll keep you posted if you're interested in reviewing it. > -Alfred Cheers, -- Bosko Milekic bmilekic@technokratis.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message