From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [RFC][PATCH] inactive_clean From: Peter Zijlstra In-Reply-To: References: <1150719606.28517.83.camel@lappy> <1150740624.28517.108.camel@lappy> Content-Type: text/plain Date: Mon, 19 Jun 2006 22:05:01 +0200 Message-Id: <1150747501.28517.114.camel@lappy> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Christoph Lameter Cc: Rik van Riel , Linus Torvalds , Andi Kleen , Rohit Seth , Andrew Morton , mbligh@google.com, hugh@veritas.com, andrea@suse.de, arjan@infradead.org, apw@shadowen.org, mel@csn.ul.ie, marcelo@kvack.org, anton@samba.org, paulmck@us.ibm.com, Nick Piggin , linux-mm , Nikita Danilov List-ID: On Mon, 2006-06-19 at 12:58 -0700, Christoph Lameter wrote: > On Mon, 19 Jun 2006, Rik van Riel wrote: > > > On Mon, 19 Jun 2006, Christoph Lameter wrote: > > > On Mon, 19 Jun 2006, Rik van Riel wrote: > > > > > > > Not only swap. Writable MAP_SHARED mmap has the same problem... > > > > > > Writable MAP_SHARED is throttled by Peter Z. other patchset on page > > > dirtying. So the problem should have been solved at that level. > > > > This new patch throttles both. It might even make the other > > one less needed - not sure... > > Hmmm.. My counter patches add NR_ANON to count the number of anonymous > pages. These are all potentially dirty. If you throttle on NR_DIRTY + > NR_ANON then we may have the effect without this patch. Sure, but what do you do to reach you threshold if there are not enough mapped pages around to clean? At that point the only thing left is to make sure some anonymous pages become clean, that is write them out to swap and have them sit around in the swap cache. The next question is: 'which pages do I write out?', and there page reclaim comes in; however are you only going to write out anonymous pages and violate page order for file backed pages? This train of thougth led to the proposed patch. -- 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: email@kvack.org