From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932225AbXGZKYm (ORCPT ); Thu, 26 Jul 2007 06:24:42 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755866AbXGZKYf (ORCPT ); Thu, 26 Jul 2007 06:24:35 -0400 Received: from mx3.mail.elte.hu ([157.181.1.138]:39585 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755830AbXGZKYe (ORCPT ); Thu, 26 Jul 2007 06:24:34 -0400 Date: Thu, 26 Jul 2007 12:24:06 +0200 From: Ingo Molnar To: Andrew Morton Cc: Frank Kingswood , Andi Kleen , Nick Piggin , Ray Lee , Jesper Juhl , ck list , Paul Jackson , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: RFT: updatedb "morning after" problem [was: Re: -mm merge plans for 2.6.23] Message-ID: <20070726102406.GA30165@elte.hu> References: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070726030902.02f5eab0.akpm@linux-foundation.org> User-Agent: Mutt/1.5.14 (2007-02-12) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.0 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.0 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.1.7-deb -1.0 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org * Andrew Morton wrote: > Setting it to zero will maximise the preservation of the vfs caches. > You wanted 10000 there. ok, updated patch below :-) > wrong, it's active on three of my boxes already :) But then again, i never had these hangover problems. (not really expected with gigs of RAM anyway) Ingo --- /etc/cron.daily/mlocate.cron.orig +++ /etc/cron.daily/mlocate.cron @@ -1,4 +1,7 @@ #!/bin/sh nodevs=$(< /proc/filesystems awk '$1 == "nodev" { print $2 }') renice +19 -p $$ >/dev/null 2>&1 +PREV=`cat /proc/sys/vm/vfs_cache_pressure 2>/dev/null` +echo 10000 > /proc/sys/vm/vfs_cache_pressure 2>/dev/null /usr/bin/updatedb -f "$nodevs" +[ "$PREV" != "" ] && echo $PREV > /proc/sys/vm/vfs_cache_pressure 2>/dev/null From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 26 Jul 2007 12:24:06 +0200 From: Ingo Molnar Subject: Re: RFT: updatedb "morning after" problem [was: Re: -mm merge plans for 2.6.23] Message-ID: <20070726102406.GA30165@elte.hu> References: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070726030902.02f5eab0.akpm@linux-foundation.org> Sender: owner-linux-mm@kvack.org Return-Path: To: Andrew Morton Cc: 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: * Andrew Morton wrote: > Setting it to zero will maximise the preservation of the vfs caches. > You wanted 10000 there. ok, updated patch below :-) > wrong, it's active on three of my boxes already :) But then again, i never had these hangover problems. (not really expected with gigs of RAM anyway) Ingo --- /etc/cron.daily/mlocate.cron.orig +++ /etc/cron.daily/mlocate.cron @@ -1,4 +1,7 @@ #!/bin/sh nodevs=$(< /proc/filesystems awk '$1 == "nodev" { print $2 }') renice +19 -p $$ >/dev/null 2>&1 +PREV=`cat /proc/sys/vm/vfs_cache_pressure 2>/dev/null` +echo 10000 > /proc/sys/vm/vfs_cache_pressure 2>/dev/null /usr/bin/updatedb -f "$nodevs" +[ "$PREV" != "" ] && echo $PREV > /proc/sys/vm/vfs_cache_pressure 2>/dev/null -- 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