From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <41902E14.4080904@yahoo.com.au> Date: Tue, 09 Nov 2004 13:40:20 +1100 From: Nick Piggin MIME-Version: 1.0 Subject: Re: removing mm->rss and mm->anon_rss from kernel? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Christoph Lameter Cc: Hugh Dickins , "Martin J. Bligh" , Benjamin Herrenschmidt , linux-mm@kvack.org, linux-ia64@vger.kernel.org List-ID: Christoph Lameter wrote: > On Mon, 8 Nov 2004, Hugh Dickins wrote: > > >>>Maintaining these counters requires locking which interferes with Nick's >>>and my attempts to parallelize the vm. >> >>Aren't you rather overestimating the importance of one single, >>ideally atomic, increment per page fault? > > > We would need to investigate that in detail. What we know is that if > multiple cpus do atomic increments with an additional spinlock/unlock etc > as done today then we do have a significant performance impact due to > exclusive cache lines oscillating between cpus. > > >>It's great news if this is really the major scalability issue facing Linux. > > > Not sure. This may just be a part of it. > I'm sure it would be a part of it. I think we've basically got 3 things that share cachelines now, they are the mmap_sem, page_table_lock, and rss/anon_rss. After removing the page table lock, it tentatively looks like mmap_sem is the next largest problem. It may be that the mmap_sem cacheline kind of serialises threads coming into handle_mm_fault, so the rss doesn't bounce so much. However I might just try ripping out the rss counters entirely and just see what happens to performance. I wonder if a per process flag or something could be used to turn off the statistics counters? I guess statistics could still be gathered for that process by using your lazy counting functions, Christoph. -- 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: aart@kvack.org