Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Apr 2009 16:41:37 +0200
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        Robert Watson <rwatson@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: per-cpu counters (Re: svn commit: r190967 - head/sys/netinet)
Message-ID:  <20090412144137.GD96365@onelab2.iet.unipi.it>
In-Reply-To: <alpine.BSF.2.00.0904121528590.19879@fledge.watson.org>
References:  <200904121406.n3CE6QSH027497@svn.freebsd.org> <20090412143000.GB96365@onelab2.iet.unipi.it> <alpine.BSF.2.00.0904121525540.19879@fledge.watson.org> <alpine.BSF.2.00.0904121528590.19879@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Apr 12, 2009 at 03:29:38PM +0100, Robert Watson wrote:
> 
> On Sun, 12 Apr 2009, Robert Watson wrote:
> 
> >>As an example, an approach i was considering is replace the existing 
> >>counters with an index in a global_counters[MAXCPU][] array so the 
> >>counter update will become something like this:
> 
> FYI, one other reason to put it all behind per-subsystem macros is that it 
> allows us to easily prototype another statistics implementation, the no-op, 
> on a per-subsystem basis.

good point, i didn't consider this.



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