User: Password:
Subscribe / Log in / New account

Re: deferred rss update instead of sloppy rss

From:  Linus Torvalds <>
To:  Christoph Lameter <>
Subject:  Re: deferred rss update instead of sloppy rss
Date:  Mon, 22 Nov 2004 14:22:30 -0800 (PST)
Cc:  Hugh Dickins <>,, Benjamin Herrenschmidt <>, Nick Piggin <>,,,
Archive-link:  Article, Thread

On Mon, 22 Nov 2004, Christoph Lameter wrote:
> The problem is then that the proc filesystem must do an extensive scan
> over all threads to find users of a certain mm_struct.

The alternative is to just add a simple list into the task_struct and the
head of it into mm_struct. Then, at fork, you just finish the fork() with

	list_add(p->mm_list, p->mm->thread_list);

and do the proper list_del() in exit_mm() or wherever.

You'll still loop in /proc, but you'll do the minimal loop necessary.

To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to  For more info on Linux MM,
see: .
Don't email: <a href=mailto:""> </a>

(Log in to post comments)

Copyright © 2004, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds