public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@sandeen.net>
To: Janos Haar <janos.haar@netcenter.hu>
Cc: linux-xfs@oss.sgi.com
Subject: Re: 2 question about XFS fragmentation and _fsr: SPLITTED Q1:sparse files
Date: Wed, 27 Apr 2011 15:37:36 -0500	[thread overview]
Message-ID: <4DB87E90.9000103@sandeen.net> (raw)
In-Reply-To: <4DB87A19.30306@sandeen.net>

On 4/27/11 3:18 PM, Eric Sandeen wrote:
> On 4/26/11 4:51 PM, Janos Haar wrote:
> 
> <snip>
> 
>>>> In the result, actually we have >6TB images on the 3TB disk, wich is
>>>> 97.9% fragmented.
>>>
>>> How are you determining that figure?
>>
>> [root@UNISTORE admin]# cat xfs_get_frat_ratio
>> echo loop0
>> xfs_db -c frag -r /dev/loop0
>> [root@UNISTORE admin]# ./xfs_get_frat_ratio
>> loop0
>> actual 7650952, ideal 752501, fragmentation factor 90.16%

btw we should just nuke that stupid command ;)

> so you had 7650952 extents on the fs, ideally you'd have 752501, or so xfs_db says...
> 
> Another way of looking at this is that you have about 10 extents per file on average.
> 
> Depending on the size of the files, this may be perfectly fine.
> Is, for example, a 10G file in ten 1G extents really a problem?
> 
> I doubt that fragmentation is your performance problem here.

... note however that you can use xfs_bmap to examine the layout of any particular file.

10 on average may be 1 for most, and 10,000 for the last one.   :)

-Eric

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

  reply	other threads:[~2011-04-27 20:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-11 17:39 2 question about XFS fragmentation and _fsr Janos Haar
2011-04-11 20:37 ` Stan Hoeppner
2011-04-26 21:21   ` 2 question about XFS fragmentation and _fsr: SPLITTED Q2:normal files, samba share Janos Haar
2011-04-26 21:50   ` 2 question about XFS fragmentation and _fsr: SPLITTED Q1:sparese files Janos Haar
2011-04-11 21:42 ` 2 question about XFS fragmentation and _fsr Dave Chinner
2011-04-11 23:37   ` Christoph Hellwig
2011-04-26 21:49     ` 2 question about XFS fragmentation and _fsr: Q2 Janos Haar
2011-04-26 21:51   ` 2 question about XFS fragmentation and _fsr: SPLITTED Q1:sparse files Janos Haar
2011-04-27 20:18     ` Eric Sandeen
2011-04-27 20:37       ` Eric Sandeen [this message]
2011-04-26 21:51   ` 2 question about XFS fragmentation and _fsr: SPLITTED Q2:normal files, samba share Janos Haar

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=4DB87E90.9000103@sandeen.net \
    --to=sandeen@sandeen.net \
    --cc=janos.haar@netcenter.hu \
    --cc=linux-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