public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Monnerie <michael.monnerie@is.it-management.at>
To: xfs@oss.sgi.com
Cc: Kenneth Emerson <kenneth.emerson@gmail.com>,
	Stan Hoeppner <stan@hardwarefreak.com>
Subject: Re: Defragging XFS File Systems
Date: Thu, 9 Jun 2011 12:12:35 +0200	[thread overview]
Message-ID: <201106091212.36227@zmi.at> (raw)
In-Reply-To: <4DF080AC.2090507@hardwarefreak.com>


[-- Attachment #1.1: Type: Text/Plain, Size: 1432 bytes --]

On Donnerstag, 9. Juni 2011 Stan Hoeppner wrote:
> When is running xfs_fsr recommended?

Good question. One case that comes to my mind is a filesystem that was 
used a long time when filled >85%, which has now either been expanded or 
files removed so you have a lot of space again, and you want to defrag 
all those files that have been badly fragmented.
 
> I scheduled it twice a week some time ago due to a filesystem
> containing active mbox files.  I did so because they became so
> heavily fragmented in short order, especially those swallowing
> copious amounts of list mail.  Before cron'ing xfs_fsr I was seeing
> mbox files with over 1000 fragmented extents, and increasing MUA
> latency as the files became more fragmented.  The filesystem is
> currently 90% free.

This is also an example where defrag may help. You have 10% usage, so 
there's enough space. Maybe your usage fits the mount option 
"allocsize", so that you keep room for file append. But newer kernels 
changed behaviour of XFS, so I'm not sure up to which kernel version its 
good. Maybe Dave Chinner can chime in here. BTW, maybe this behaviour 
should be documented in the FAQ so we can reference it.

-- 
mit freundlichen Grüssen,
Michael Monnerie, Ing. BSc

it-management Internet Services: Protéger
http://proteger.at [gesprochen: Prot-e-schee]
Tel: +43 660 / 415 6531

// Haus zu verkaufen: http://zmi.at/langegg/

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2011-06-09 10:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-07  3:52 Defragging XFS File Systems Kenneth Emerson
2011-06-07  5:48 ` Stewart Smith
2011-06-07 12:05 ` Stan Hoeppner
     [not found]   ` <BANLkTikBSL8-eTAbF7a94ckLuZNyWCM=Eg@mail.gmail.com>
2011-06-08 21:00     ` Stan Hoeppner
2011-06-09  5:49       ` Michael Monnerie
2011-06-09  8:13         ` Stan Hoeppner
2011-06-09 10:12           ` Michael Monnerie [this message]
2011-06-09 18:24             ` Stan Hoeppner
2011-06-10 17:56               ` Dave Chinner
2011-06-11  1:12                 ` Stan Hoeppner

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=201106091212.36227@zmi.at \
    --to=michael.monnerie@is.it-management.at \
    --cc=kenneth.emerson@gmail.com \
    --cc=stan@hardwarefreak.com \
    --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