From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladislav Bolkhovitin Subject: Re: xfs rm performance Date: Thu, 05 Aug 2010 23:31:06 +0400 Message-ID: <4C5B117A.4080706@vlnb.net> References: <4C52CBFF.6090406@vlnb.net> <20100730130957.GA26894@lst.de> <4C52D2E0.5000609@vlnb.net> <20100730133410.GA27996@lst.de> <4C52D728.6070008@vlnb.net> <20100730142025.GA29341@lst.de> <20100731004756.GC3273@quack.suse.cz> <4C56A01A.1050107@vlnb.net> <20100802124830.GB22345@lst.de> <4C571664.7030107@vlnb.net> <20100802191821.GA13452@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Jan Kara , Ted Ts'o , Andreas Dilger , Ric Wheeler , Tejun Heo , Vivek Goyal , jaxboe@fusionio.com, James.Bottomley@suse.de, linux-fsdevel@vger.kernel.org, linux-scsi@vger.kernel.org, chris.mason@oracle.com, swhiteho@redhat.com, konishi.ryusuke@lab.ntt.co.jp To: Christoph Hellwig Return-path: Received: from moutng.kundenserver.de ([212.227.126.187]:49382 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932107Ab0HETbV (ORCPT ); Thu, 5 Aug 2010 15:31:21 -0400 In-Reply-To: <20100802191821.GA13452@lst.de> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Christoph Hellwig, on 08/02/2010 11:18 PM wrote: > On Mon, Aug 02, 2010 at 11:03:00PM +0400, Vladislav Bolkhovitin wrote: >> I traced what XFS is doing that time. The initiator is sending by a _single command at time_ the following pattern: > > That's exactly the queue draining we're talking about here. To see > how the pattern gets better use the nobarrier option. Yes, with this option it's almost 2 times better and I see slight queue depth (1-2-3 entries in average, max 8), but the performance is still bad: # time rm _* real 3m31.385s user 0m0.004s sys 0m26.674s > Even with that XFS traditionally has a bad I/O pattern for metadata > intensive workloads due to the amount of log I/O needed for it. > Starting from Linux 2.6.35 the delayed logging code fixes this, and > we hope to enable it by default after about 10 to 12 month of > extensive testing. > > Try to re-run your test with > > -o delaylog,logbsize=262144 > > to see better log I/O pattern. If you target doesn't present a volatile > write cache also add the nobarrier option mentioned above. Unfortunately, at the moment I can't run 2.6.35 on that kernel, but will try as soon as I can. Thanks, Vlad