From: Dave Chinner <david@fromorbit.com>
To: Tom Crane <T.Crane@rhul.ac.uk>
Cc: Christoph Hellwig <hch@infradead.org>,
Eric Sandeen <sandeen@sandeen.net>,
xfs@oss.sgi.com
Subject: Re: xfs_repair segfaults with ag_stride option
Date: Wed, 8 Feb 2012 20:00:41 +1100 [thread overview]
Message-ID: <20120208090041.GJ20305@dastard> (raw)
In-Reply-To: <4F316236.7050607@rhul.ac.uk>
On Tue, Feb 07, 2012 at 05:41:10PM +0000, Tom Crane wrote:
> Eric Sandeen wrote:
> >On 2/6/12 5:19 AM, Tom Crane wrote:
> >>Eric Sandeen wrote:
> >
> >...
> >
> >>>Newer tools are fine to use on older filesystems, there should be no
> >>Good!
> >>
> >>>issue there.
> >>>
> >>>running fsr can cause an awful lot of IO, and a lot of file reorganization.
> >>>(meaning, they will get moved to new locations on disk, etc).
> >>>
> >>>How bad is it, really? How did you arrive at the 40% number? Unless
> >>xfs_db -c frag -r <block device>
> >
> >which does:
> >
> > answer = (double)(extcount_actual - extcount_ideal) * 100.0 /
> > (double)extcount_actual;
> >
> >If you work it out, if every file was split into only 2 extents, you'd have
> >"50%" - and really, that's not bad. 40% is even less bad.
>
> Here is a list of some of the more fragmented files, produced using,
> xfs_db -r /dev/mapper/vg0-lvol0 -c "frag -v" | head -1000000 | sort
> -k4,4 -g | tail -100
>
> >inode 1323681 actual 12496 ideal 2
> >inode 1324463 actual 12633 ideal 2
.....
> >inode 1320625 actual 20579 ideal 2
> >inode 1335016 actual 22701 ideal 2
> >inode 753185 actual 33483 ideal 2
> >inode 64515 actual 37764 ideal 2
> >inode 76068 actual 41394 ideal 2
> >inode 76069 actual 65898 ideal 2
Ok, so that looks like you have a fragmentation problem here. What
is the workload that is generating these files?
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2012-02-08 9:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-01 13:36 xfs_repair segfaults with ag_stride option Tom Crane
2012-02-02 12:42 ` Christoph Hellwig
2012-02-06 0:50 ` Tom Crane
2012-02-06 5:58 ` Eric Sandeen
2012-02-06 11:19 ` Tom Crane
2012-02-06 13:21 ` Eric Sandeen
2012-02-07 17:41 ` Tom Crane
2012-02-07 18:00 ` Eric Sandeen
2012-02-08 9:00 ` Dave Chinner [this message]
2012-02-06 14:04 ` Christoph Hellwig
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=20120208090041.GJ20305@dastard \
--to=david@fromorbit.com \
--cc=T.Crane@rhul.ac.uk \
--cc=hch@infradead.org \
--cc=sandeen@sandeen.net \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.