xfs
[Top] [All Lists]

Re: xfs_fsr allocation group optimization

To: Johan Andersson <johan@xxxxxxxxx>
Subject: Re: xfs_fsr allocation group optimization
From: Chris Wedgwood <cw@xxxxxxxx>
Date: Mon, 11 Jun 2007 00:35:59 -0700
Cc: xfs@xxxxxxxxxxx
In-reply-to: <1181544692.19145.44.camel@gentoo-johan.transmode.se>
References: <1181544692.19145.44.camel@gentoo-johan.transmode.se>
Sender: xfs-bounce@xxxxxxxxxxx
On Mon, Jun 11, 2007 at 08:51:32AM +0200, Johan Andersson wrote:

> So I run some tests. And as Chris pointed out, when running xfs_fsr
> on a badly fragmented filesystem, it completely destroys the
> locality of files.

You can always do something like:

   find path/to/defrag/ -type f -print0 | xargs -r0 xfs_fsr -v

and check /var/log/daemon.log (or whatever) for a progress report.

This will of course only make one pass, so you might want to wrap it.
But unless you're really low on space it's probably not useful to make
many passes anyhow.

You might always want the -d argument (not sure if the man page has
this).


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