Re: deferred rss update instead of sloppy rss
From: Christoph Lameter
Date: Mon Nov 22 2004 - 19:56:21 EST
On Mon, 22 Nov 2004, Andrew Morton wrote:
> > The timer tick occurs every 1 ms.
>
> That only works if the task happens to have the CPU when the timer tick
> occurs. There remains no theoretical upper bound to the error in mm->rss,
> and that's very easy to fix.
Page fault intensive programs typically hog the cpu. But you are in
principle right.
The "easy fix" that you propose is to add additional logic to some very
hot code paths. Then we are probably better off with another approach.
-
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/