[Top] [All Lists]

Re: Speed of rm compared to reiserfs (slow) - and switching logdevices

To: Török Edwin <edwintorok@xxxxxxxxx>, xfs@xxxxxxxxxxx
Subject: Re: Speed of rm compared to reiserfs (slow) - and switching logdevices
From: Török Edwin <edwintorok@xxxxxxxxx>
Date: Sun, 28 Sep 2008 19:34:21 +0300
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=wrd2ySwIlt6mdYIOi7cwW3ASSAhhVJU7J40f0G381kE=; b=qV40Jb/XAt58xJcw8b32M7/xB/TsyjltXtDJwr0jwsreS9rzZNd1TZCkA6d+MAmmFq Mp60qQ2Gwr+sPLcjpDS5ZHyUadZ3iomSo1cWE9KQXcu68bedeIWvXe2eOnV8Zyq5bMaw JObX8aJvic8t+3j4UCgwfe495f6uCVqknO1+k=
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=LIw3PitiG5uTdAisp4WuE0DmFARxt18dT/LJ7S/UaroZD3NRNkt5iByXn21d/8qLnW iOwMu/F2bUyFkDVfYLF7sGfWS44r6RH6yOn3smnc884tpgwPOQf1raYh/08XHyGzkXAf smjX1RZS1kNCkcWJhzmVs4tEzr/QTWv7zRORg=
In-reply-to: <48DC9227.6060908@xxxxxxxxx>
References: <48D9FDA1.8050701@xxxxxxxxx> <20080925002724.GA27997@disturbed> <48DB48E3.3020104@xxxxxxxxx> <20080925235453.GF27997@disturbed> <48DC9227.6060908@xxxxxxxxx>
User-agent: Mozilla-Thunderbird (X11/20080724)
On 2008-09-26 10:41, Török Edwin wrote:
> On 2008-09-26 02:54, Dave Chinner wrote:
>> On Thu, Sep 25, 2008 at 11:16:35AM +0300, Török Edwin wrote:
>>> On 2008-09-25 03:27, Dave Chinner wrote:
>>>> On Wed, Sep 24, 2008 at 11:43:13AM +0300, Török Edwin wrote:
>>> 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?
>> Buy more disks. ;)
>> XFS is not really optimised for single disk, metadata intensive,
>> small file workloads.
> I have 6 disks, in raid10 :)

I moved the logdevice to another disk (not part of RAID array), and now
the speed of rm is down to 30 seconds!

I didn't find any documentation on how to convert an XFS fs with
internal log device to use external, so I did the following:
# xfs_db -x /dev/mapper/vg--all-lv--opt
xfs_db> write logstart 0
xfs_db> quit

The zero the logdevice, and mount using logdev=. This worked.

However if I now use xfs_repair on this filesystem it restores the
internal log. Is there a way to make this change permanent? (i.e. switch
permanently to using external log?)

Best regards,

<Prev in Thread] Current Thread [Next in Thread>