per-cpu counters (Re: svn commit: r190967 - head/sys/netinet)
Luigi Rizzo
rizzo at iet.unipi.it
Sun Apr 12 14:36:27 UTC 2009
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.
More information about the svn-src-head
mailing list