From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 27 Jul 2007 02:02:32 -0700 From: Andrew Morton Subject: Re: RFT: updatedb "morning after" problem [was: Re: -mm merge plans for 2.6.23] Message-Id: <20070727020232.883be5a8.akpm@linux-foundation.org> In-Reply-To: <20070727085440.GT27237@ftp.linux.org.uk> References: <46A85D95.509@kingswood-consulting.co.uk> <20070726092025.GA9157@elte.hu> <20070726023401.f6a2fbdf.akpm@linux-foundation.org> <20070726094024.GA15583@elte.hu> <20070726030902.02f5eab0.akpm@linux-foundation.org> <1185454019.6449.12.camel@Homer.simpson.net> <20070726110549.da3a7a0d.akpm@linux-foundation.org> <1185513177.6295.21.camel@Homer.simpson.net> <1185521021.6295.50.camel@Homer.simpson.net> <20070727014749.85370e77.akpm@linux-foundation.org> <20070727085440.GT27237@ftp.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Al Viro Cc: Mike Galbraith , Ingo Molnar , Frank Kingswood , Andi Kleen , Nick Piggin , Ray Lee , Jesper Juhl , ck list , Paul Jackson , linux-mm@kvack.org, linux-kernel@vger.kernel.org List-ID: On Fri, 27 Jul 2007 09:54:41 +0100 Al Viro wrote: > On Fri, Jul 27, 2007 at 01:47:49AM -0700, Andrew Morton wrote: > > What I think is killing us here is the blockdev pagecache: the pagecache > > which backs those directory entries and inodes. These pages get read > > multiple times because they hold multiple directory entries and multiple > > inodes. These multiple touches will put those pages onto the active list > > so they stick around for a long time and everything else gets evicted. > > I wonder what happens if you try that on ext2. There we'd get directory > contents in per-directory page cache, so the picture might change... afacit ext2 just forgets to run mark_page_accessed for directory pages altogether, so it'll be equivalent to ext3 with that one-liner, I expect. The directory pagecache on ext2 might get reclaimed faster because those pages are eligible for reclaiming via the reclaim of their inodes, whereas ext3's directories are in blockdev pagecache, for which the reclaim-via-inode mechanism cannot happen. I should do some testing with mmapped files. -- 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