Re: [RFC] Event counters [1/3]: Basic counter functionality

From: Christoph Lameter
Date: Tue Jan 03 2006 - 14:08:09 EST


On Sat, 31 Dec 2005, Nick Piggin wrote:

> So I'm not exactly sure why such a patch as this is wanted now? Are there
> any more xxx_page_state hotspots? (I admit to only looking at page faults,
> page allocator, and page reclaim).

The proposed patchset is based on the zoned counter patchset. This means
that critical counters have been converted to use different macros. The
following discussion of Marcelo and Nick on nr_mapped etc is not relevant
to this patch since nr_mapped etc are not event counters but are handled
by the zoned counters.

The event counters are the leftover vanity counters that are referenced
only for display in /proc and the proposed approach is to only allow
increments and allow racy updates.

Then these lightweight counters are also used to optimize away the numa
specific counters in the per cpu structures.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/