Re: deferred rss update instead of sloppy rss

From: Christoph Lameter <>
Date: 2004-11-23 09:48:22
On Mon, 22 Nov 2004, Andrew Morton wrote:

> > The page fault code only increments rss. For larger transactions that
> > increase / decrease rss significantly the page_table_lock is taken and
> > mm->rss is updated directly. So no
> > gross inaccuracies can result.
> Sure.  Take a million successive pagefaults and mm->rss is grossly
> inaccurate.  Hence my suggestion that it be spilled into mm->rss
> periodically.

It is spilled into mm->rss periodically. That is the whole point of the

The timer tick occurs every 1 ms. The maximum pagefault frequency that I
have  seen is 500000 faults /second. The max deviation is therefore
less than 500 (could be greater if page table lock / mmap_sem always held
when the tick occurs).
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Mon Nov 22 20:57:55 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:32 EST