xfs
[Top] [All Lists]

Re: xfs_fsr allocation group optimization

To: Chris Wedgwood <cw@xxxxxxxx>
Subject: Re: xfs_fsr allocation group optimization
From: Johan Andersson <johan@xxxxxxxxx>
Date: Mon, 11 Jun 2007 11:15:56 +0200
Cc: xfs@xxxxxxxxxxx
In-reply-to: <20070611090138.GA28907@xxxxxxxxxxxxxxxxxxxxx>
References: <1181544692.19145.44.camel@xxxxxxxxxxxxxxxxxxxxxxxxx> <20070611073559.GA26257@xxxxxxxxxxxxxxxxxxxxx> <1181551409.19145.57.camel@xxxxxxxxxxxxxxxxxxxxxxxxx> <20070611090138.GA28907@xxxxxxxxxxxxxxxxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
On Mon, 2007-06-11 at 02:01 -0700, Chris Wedgwood wrote:
> using "find .... xfs_fsr" you get temporary files in the same AG as
> the file your are defragmenting, avoiding the spreading out effect,
> but this might not be the least-defragmented file you can get
> 
> what's really needed is an attempt to find space near the original
> file if possible and if not then an option to try harder looking in
> other AGs
This is exactly what the simple but ugly patch I attached achieves by
looking up the filename of the inode it defrags when doing a full file
system defrag. And it works well, except that it spends a lot of time
finding that file name. As I said, a better option would be if you could
tell XFS in what AG you want extents for a newly created file to place
it's extents in. 

/Johan Andersson


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