X-Spam-Checker-Version: SpamAssassin 3.3.0-r574664 (2007-09-11) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,MIME_8BIT_HEADER autolearn=no version=3.3.0-r574664 Received: from cuda.sgi.com (cuda1.sgi.com [192.48.168.28]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m8P8FABC010455 for ; Thu, 25 Sep 2008 01:15:10 -0700 X-ASG-Debug-ID: 1222330604-079502ec0000-NocioJ X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from nf-out-0910.google.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id B37B21079064 for ; Thu, 25 Sep 2008 01:16:44 -0700 (PDT) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by cuda.sgi.com with ESMTP id 1kamaAF0xqViTjxB for ; Thu, 25 Sep 2008 01:16:44 -0700 (PDT) Received: by nf-out-0910.google.com with SMTP id h3so313537nfh.42 for ; Thu, 25 Sep 2008 01:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=J0TspeAsx/r8Z+24R1cJGX0C2KM318ZO9SGktDAPGXg=; b=DuDaptfiU3ZW4PaEkyNTxBzPaGhYgdlvTLQzGT/mYiN0uqq8JH7PjDJJFiJIjs0pxD mxUTsq6QQbxv+DxoJchSwZ+2pwFI1fuuUOdsplKKEYo+U8wAKsPhSh4OTuPzX6lNfjhV rB4I9EHt52Wp7YwseGDC4qCLcjakdvkW9p5lI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=wvg7ntuZXlMcd8o8kKquSbziDjCRmUItxzYbkJssWIrND2/3gEWMiYyWv50Tv7fSAz N/eumWJ+p6iwO2SjP0paPUk/PQ0eguPzvzh+P7qqho9Hve8QV9i7dfPyBDjLtpKZY4+A UgPL3Se5+QM7SrqCbV1gGjhCU6+1PCSiskNbw= Received: by 10.103.214.13 with SMTP id r13mr5628617muq.4.1222330603633; Thu, 25 Sep 2008 01:16:43 -0700 (PDT) Received: from debian.localdomain ( [79.114.5.147]) by mx.google.com with ESMTPS id w5sm1816749mue.10.2008.09.25.01.16.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 25 Sep 2008 01:16:42 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by debian.localdomain (Postfix) with ESMTP id DFE3239299; Thu, 25 Sep 2008 11:16:35 +0300 (EEST) Message-ID: <48DB48E3.3020104@gmail.com> Date: Thu, 25 Sep 2008 11:16:35 +0300 From: =?ISO-8859-1?Q?T=F6r=F6k_Edwin?= User-Agent: Mozilla-Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: xfs@oss.sgi.com, david@fromorbit.com X-ASG-Orig-Subj: Re: Speed of rm compared to reiserfs (slow) Subject: Re: Speed of rm compared to reiserfs (slow) References: <48D9FDA1.8050701@gmail.com> <20080925002724.GA27997@disturbed> In-Reply-To: <20080925002724.GA27997@disturbed> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Barracuda-Connect: nf-out-0910.google.com[64.233.182.188] X-Barracuda-Start-Time: 1222330605 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0208 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.1.6455 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- On 2008-09-25 03:27, Dave Chinner wrote: > On Wed, Sep 24, 2008 at 11:43:13AM +0300, Török Edwin wrote: > >> Hi, >> >> I am happily using xfs for /var, /usr and /, and I am very pleased with >> the read speed. >> I've just recommended xfs to a friend, and he complained about the speed >> of rm. >> >> I did a test on my box, and indeed the speed of rm is order of magnitude >> slower compared to reiserfs. >> I already use lazy-count, and noatime/nodiratime. Write barriers are off >> because I run on raid10. >> >> Is there anything else I can tune to get faster rm speed? >> > > mount -o logbsize=262144 > I've added it to my mount options, also tried logbufs=8 (but that didn't make much difference). > >> # mount | grep var >> /dev/mapper/vg--all-lv--var on /var type xfs (rw,noatime,nodiratime) >> > > BTW, noatime implies nodiratime - you don't ned to specify both. > > >> tmpfs 2.0G 12K 2.0G 1% /lib/init/rw >> udev 10M 188K 9.9M 2% /dev >> tmpfs 2.0G 0 2.0G 0% /dev/shm >> /dev/mapper/vg--all-lv--usr >> 100G 5.3G 95G 6% /usr >> /dev/mapper/vg--all-lv--var >> 1.3T 230G 1.1T 18% /var >> > > At 1.1T, you probably want to use inode64 for /var. The different > allocation strategy of inode32 can be substantially slower than > inode64. > > Thanks for the suggestions, the time for rm has improved a bit, but is still slower than reiserfs: time rm -rf gcc real 1m18.818s user 0m0.156s sys 0m11.777s Is there anything else I can try to make it faster? Best regards, --Edwin