From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sat, 28 Jul 2007 14:06:50 -0700 (PDT) From: david@lang.hm Subject: Re: RFT: updatedb "morning after" problem [was: Re: -mm merge plans for 2.6.23] In-Reply-To: <200707281156.53439.dhazelton@enter.net> Message-ID: References: <9a8748490707231608h453eefffx68b9c391897aba70@mail.gmail.com> <46AAEDEB.7040003@gmail.com> <200707281156.53439.dhazelton@enter.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: owner-linux-mm@kvack.org Return-Path: To: Daniel Hazelton Cc: Rene Herman , Mike Galbraith , Andrew Morton , 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 Sat, 28 Jul 2007, Daniel Hazelton wrote: > > On Saturday 28 July 2007 04:55:58 david@lang.hm wrote: >> On Sat, 28 Jul 2007, Rene Herman wrote: >>> On 07/27/2007 09:43 PM, david@lang.hm wrote: >>>> On Fri, 27 Jul 2007, Rene Herman wrote: >>>>> On 07/27/2007 07:45 PM, Daniel Hazelton wrote: >> >> nobody is arguing that swap prefetch helps in the second cast. > > Actually, I made a mistake when tracking the thread and reading the code for > the patch and started to argue just that. But I have to admit I made a > mistake - the patches author has stated (as Rene was kind enough to point > out) that swap prefetch can't help when memory is filled. I stand corrected, thaks for speaking up and correcting your position. >> what people are arguing is that there are situations where it helps for >> the first case. on some machines and version of updatedb the nighly run of >> updatedb can cause both sets of problems. but the nightly updatedb run is >> not the only thing that can cause problems > > Solving the cache filling memory case is difficult. There have been a number > of discussions about it. The simplest solution, IMHO, would be to place a > (configurable) hard limit on the maximum size any of the kernels caches can > grow to. (The only solution that was discussed, however, is a complex beast) limiting the size of the cache is also the wrong thing to do in many situations. it's only right if the cache pushes out other data you care about, if you are trying to do one thing as fast as you can you really do want the system to use all the memory it can for the cache. David Lang -- 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