From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935442AbXG0Aqe (ORCPT ); Thu, 26 Jul 2007 20:46:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761891AbXG0AqO (ORCPT ); Thu, 26 Jul 2007 20:46:14 -0400 Received: from wa-out-1112.google.com ([209.85.146.177]:47481 "EHLO wa-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760948AbXG0AqN (ORCPT ); Thu, 26 Jul 2007 20:46:13 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pu1F/5bHmiXH5r5sZw1qiKHL5k2b/WuWo/nVE1AwDKBW3ZMH3j3BavzJFY7t8lH6HkWRHvY+BZDxrJKlFsa+GzxZHiMxT5Qzh7hLpP+JQbg2btr+1XUKGFuIhK+/+TRROex+tAtuLHSq7KbgbEq8CXvlkexZ0WUE+Dm4RL2LMnM= Message-ID: <9a8748490707261746p638e4a98p3cdb7d9912af068a@mail.gmail.com> Date: Fri, 27 Jul 2007 02:46:11 +0200 From: "Jesper Juhl" To: "Andika Triwidada" Subject: Re: updatedb Cc: "Rene Herman" , "Robert Deaton" , linux-kernel@vger.kernel.org, "ck list" , linux-mm@kvack.org In-Reply-To: <7e0bae390707252323k2552c701x5673c55ff2cf119e@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <367a23780707250830i20a04a60n690e8da5630d39a9@mail.gmail.com> <46A773EA.5030103@gmail.com> <46A81C39.4050009@gmail.com> <7e0bae390707252323k2552c701x5673c55ff2cf119e@mail.gmail.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On 26/07/07, Andika Triwidada wrote: > On 7/26/07, Rene Herman wrote: > > On 07/25/2007 07:15 PM, Robert Deaton wrote: > > > > > On 7/25/07, Rene Herman wrote: > > > > >> And there we go again -- off into blabber-land. Why does swap-prefetch > > >> help updatedb? Or doesn't it? And if it doesn't, why should anyone > > >> trust anything else someone who said it does says? > > > > > I don't think anyone has ever argued that swap-prefetch directly helps > > > the performance of updatedb in any way > > > > People have argued (claimed, rather) that swap-prefetch helps their system > > after updatedb has run -- you are doing so now. > > > > > however, I do recall people mentioning that updatedb, being a ram > > > intensive task, will often cause things to be swapped out while it runs > > > on say a nightly cronjob. > > > > Problem spot no. 1. > > > > RAM intensive? If I run updatedb here, it never grows itself beyond 2M. Yes, > > two. I'm certainly willing to accept that me and my systems are possibly not > > the reference but assuming I'm _very_ special hasn't done much for me either > > in the past. > > Might be insignificant, but updatedb calls find (~2M) and sort (~26M). > Definitely not RAM intensive though (RAM is 1GB). > That doesn't match my box at all : root@dragon:/home/juhl# free total used free shared buffers cached Mem: 2070856 1611548 459308 0 59312 740760 -/+ buffers/cache: 811476 1259380 Swap: 987988 0 987988 root@dragon:/home/juhl# updatedb root@dragon:/home/juhl# free total used free shared buffers cached Mem: 2070856 1724204 346652 0 144708 745328 -/+ buffers/cache: 834168 1236688 Swap: 987988 0 987988 This is a Slackware Linux 12.0 system. -- Jesper Juhl Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html Plain text mails only, please http://www.expita.com/nomime.html