xfs
[Top] [All Lists]

Re: xfs_fsr, performance related tweaks

To: Eric Sandeen <sandeen@xxxxxxxxxxx>
Subject: Re: xfs_fsr, performance related tweaks
From: David Chinner <dgc@xxxxxxx>
Date: Mon, 2 Jul 2007 08:43:39 +1000
Cc: David Chinner <dgc@xxxxxxx>, Just Marc <marc@xxxxxxxxx>, Barry Naujok <bnaujok@xxxxxxx>, xfs@xxxxxxxxxxx
In-reply-to: <46869029.3040704@xxxxxxxxxxx>
References: <4683ADEB.3010106@xxxxxxxxx> <46841C60.5030207@xxxxxxxxxxx> <4684A506.4030705@xxxxxxxxx> <op.tun7i8wd3jf8g2@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <4684A98B.1030000@xxxxxxxxx> <20070629070814.GR31489@xxxxxxx> <4684B1CC.60004@xxxxxxxxx> <20070629074114.GS31489@xxxxxxx> <46869029.3040704@xxxxxxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
On Sat, Jun 30, 2007 at 01:17:29PM -0400, Eric Sandeen wrote:
> David Chinner wrote:
> > On Fri, Jun 29, 2007 at 08:16:28AM +0100, Just Marc wrote:
> >> David,
> >>
> >> In my first post I already said something like that can be done but it's 
> >> just an ugly hack.   Don't you think it would best be handled cleanly 
> >> and correctly by fsr itself?
> > 
> > No, I don't - if you want files not to be defragmented, then you
> > have to set the flags yourself in some way. You have a specific need
> > that can be solved by some scripting to describe your defrag/no
> > defrag policy. xfs_fsr has no place is setting defrag policy; it's
> > function is simply to find and defrag files.
> 
> I wouldn't mind seeing a way to tell fsr to not worry about defragging
> some files based on current layout; say if the avg extent in the file is
> > 100MB, or > 1G, don't bother... if today you have a 4.7G DVD iso image
> in 3 extents (not bad) fsr will try to "fix" it for you right?

That could be easily done with command line options, I think. Define
the minimum extent length or number of extents we want files to have
and ignore those that are outside that criteria.

Cheers,

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


<Prev in Thread] Current Thread [Next in Thread>
  • Re: xfs_fsr, performance related tweaks, David Chinner <=