From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: RFT: updatedb "morning after" problem [was: Re: -mm merge plans for 2.6.23] From: Mike Galbraith In-Reply-To: <20070726110549.da3a7a0d.akpm@linux-foundation.org> References: <9a8748490707231608h453eefffx68b9c391897aba70@mail.gmail.com> <46A57068.3070701@yahoo.com.au> <2c0942db0707232153j3670ef31kae3907dff1a24cb7@mail.gmail.com> <46A58B49.3050508@yahoo.com.au> <2c0942db0707240915h56e007e3l9110e24a065f2e73@mail.gmail.com> <46A6CC56.6040307@yahoo.com.au> <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> Content-Type: text/plain Date: Fri, 27 Jul 2007 07:12:57 +0200 Message-Id: <1185513177.6295.21.camel@Homer.simpson.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Andrew Morton Cc: 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 Thu, 2007-07-26 at 11:05 -0700, Andrew Morton wrote: > On Thu, 26 Jul 2007 14:46:58 +0200 Mike Galbraith wrote: > > > On Thu, 2007-07-26 at 03:09 -0700, Andrew Morton wrote: > > > > > Setting it to zero will maximise the preservation of the vfs caches. You > > > wanted 10000 there. > > > > > > > > > > drops caches prior to both updatedb runs. > > I think that was the wrong thing to do. That will leave gobs of free > memory for updatedb to populate with dentries and inodes. > > Instead, fill all of memory up with pagecache, then do the updatedb. See > how much pagecache is left behind and see how large the vfs caches end up. Yeah. Before these two runs just to see what difference there was in caches with those two settings, I tried running with a heavier than normal (for me) desktop application mix, to see if it would start swapping, but it didn't. Seems that 1GB ram is enough space for everything I do, and everything updatedb does as well. You need a larger working set to feel the pain I guess. -Mike -- 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