Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261164AbUKVWbs (ORCPT ); Mon, 22 Nov 2004 17:31:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262445AbUKVWam (ORCPT ); Mon, 22 Nov 2004 17:30:42 -0500 Received: from omx3-ext.sgi.com ([192.48.171.20]:5812 "EHLO omx3.sgi.com") by vger.kernel.org with ESMTP id S262448AbUKVW1f (ORCPT ); Mon, 22 Nov 2004 17:27:35 -0500 Date: Mon, 22 Nov 2004 14:27:07 -0800 (PST) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: Linus Torvalds cc: Hugh Dickins , akpm@osdl.org, Benjamin Herrenschmidt , Nick Piggin , linux-mm@kvack.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: deferred rss update instead of sloppy rss In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 770 Lines: 20 On Mon, 22 Nov 2004, Linus Torvalds wrote: > 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. I think the approach that I posted is simpler unless there are other benefits to be gained if it would be easy to figure out which tasks use an mm. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/