xfs
[Top] [All Lists]

Re: xfs_fsr allocation group optimization

To: Johan Andersson <johan@xxxxxxxxx>
Subject: Re: xfs_fsr allocation group optimization
From: David Chinner <dgc@xxxxxxx>
Date: Tue, 12 Jun 2007 11:41:46 +1000
Cc: Chris Wedgwood <cw@xxxxxxxx>, xfs@xxxxxxxxxxx
In-reply-to: <1181553356.19145.65.camel@gentoo-johan.transmode.se>
References: <1181544692.19145.44.camel@gentoo-johan.transmode.se> <20070611073559.GA26257@tuatara.stupidest.org> <1181551409.19145.57.camel@gentoo-johan.transmode.se> <20070611090138.GA28907@tuatara.stupidest.org> <1181553356.19145.65.camel@gentoo-johan.transmode.se>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On Mon, Jun 11, 2007 at 11:15:56AM +0200, Johan Andersson wrote:
> 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. 

Yup. That would be nice. We've got the basis of doing allocation policies
with the filestreams code - an arbitrary blob of data associated with
an inode that influences the allocation decision. Userspace driven
allocation hints are more complex and require subtler hooks in the
allocation path, though....

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group


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