Re: [PATCH] 2.6.0-test4 -- add context switch counters

From: William Lee Irwin III
Date: Wed Aug 27 2003 - 03:11:35 EST


On Wed, Aug 27, 2003 at 05:39:27PM +1000, Peter Chubb wrote:
> To calculate these you need a timestamp for last change, and a set of
> counters.
> Then code to update all the counters every time one of the sizes
> change (otherwise you need a timestamp for each counter) by adding
> current_size*(current_time - last_change_time) to each counter.

Hmm. Building a tiny integrated counter ADT sounds useful; I can just
park it on something easy like RSS and we can use it to crush the rest
when there's enough machinery to keep the non-integrated counters.


-- wli
-
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/