Re: Which fragmentation factor is allowable for xfs (not impact on performance)?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/6/18 12:34 PM, Mikhail Gavrilov wrote:
> Which fragmentation factor is allowable for xfs (not impact on performance)?
> 
> # xfs_db -c frag -r /dev/sda
> actual 4908781, ideal 2801391, fragmentation factor 42.93%

Ignore the fragmentation factor, because:

> Note, this number is largely meaningless.
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

http://xfs.org/index.php/XFS_FAQ#Q:_The_xfs_db_.22frag.22_command_says_I.27m_over_50.25._Is_that_bad.3F

> Files on this filesystem average 1.75 extents per file
The majority of your files have only 1 extent.

> # mount | grep sda
> /dev/sda on /home type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
> 
> # df -h | grep sda
> /dev/sda         11T  5.3T  5.7T  49% /home
> 
> I think it too much for partition which are half free.

Why do you think that?

> It would also be interesting to see the fragmentation in the context
> of files, but I have not found anywhere how to look at it.

xfs_bmap will show you extent layout for individual files.

-Eric



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux