Re: deferred rss update instead of sloppy rss
[Posted December 7, 2004 by corbet]
| From: |
| Linus Torvalds <torvalds-AT-osdl.org> |
| To: |
| Christoph Lameter <clameter-AT-sgi.com> |
| Subject: |
| Re: deferred rss update instead of sloppy rss |
| Date: |
| Mon, 22 Nov 2004 14:22:30 -0800 (PST) |
| Cc: |
| Hugh Dickins <hugh-AT-veritas.com>, akpm-AT-osdl.org,
Benjamin Herrenschmidt <benh-AT-kernel.crashing.org>,
Nick Piggin <nickpiggin-AT-yahoo.com.au>, linux-mm-AT-kvack.org,
linux-ia64-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org |
| 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.
Linus
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
(
Log in to post comments)