public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: "Török Edwin" <edwintorok@gmail.com>
To: Eric Sandeen <sandeen@sandeen.net>
Cc: xfs@oss.sgi.com
Subject: Re: Speed of rm compared to reiserfs (slow) - and switching logdevices
Date: Sun, 28 Sep 2008 22:27:07 +0300	[thread overview]
Message-ID: <48DFDA8B.6070006@gmail.com> (raw)
In-Reply-To: <48DFCC1F.9000506@sandeen.net>

On 2008-09-28 21:25, Eric Sandeen wrote:
> Török Edwin wrote:
>   
>> 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>sb
>> 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?)
>>     
>
> Odds are you need to also set the logstart in the other superblocks:
>
> xfs_db> sb 0
> xfs_db> write logstart 0
> xfs_db> sb 1
> xfs_db> write logstart 0
>
> ...
>
> you could script this with xfs_db -c
>   

Thank you, xfs_repair now no longer changes the logdevice.

Best regards,
--Edwin

      reply	other threads:[~2008-09-28 19:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-24  8:43 Speed of rm compared to reiserfs (slow) Török Edwin
2008-09-25  0:27 ` Dave Chinner
2008-09-25  8:16   ` Török Edwin
2008-09-25  9:08     ` gus3
2008-09-25 23:54     ` Dave Chinner
2008-09-26  7:41       ` Török Edwin
2008-09-28 16:34         ` Speed of rm compared to reiserfs (slow) - and switching logdevices Török Edwin
2008-09-28 18:25           ` Eric Sandeen
2008-09-28 19:27             ` Török Edwin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48DFDA8B.6070006@gmail.com \
    --to=edwintorok@gmail.com \
    --cc=sandeen@sandeen.net \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox