Gentoo Archives: gentoo-amd64

From: Bob Sanders <rsanders@×××.com>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Fragmentation (Was: Re: Re: Re: Wow! KDE 3.5.1 & Xorg 7.0 w/ Composite)
Date: Wed, 08 Feb 2006 16:05:36
Message-Id: 20060208160221.GA73334@sgi.com
In Reply to: Re: [gentoo-amd64] Fragmentation (Was: Re: Re: Re: Wow! KDE 3.5.1 & Xorg 7.0 w/ Composite) by Richard Fish
1 Richard Fish, mused, then expounded:
2 >
3 > IMO xfs_fsr is a little brain-damaged in it's operation (won't
4 > consolidate free space, requires enough space to fully copy a
5 > fragmented file, etc). It is probably not worth running if you have a
6 > sensible partition setup.
7 >
8
9 It was never designed to work like a WinXX defragger. The man page states
10 exactly what it will do, and consolidating space is not part of it's
11 design.
12
13 >From the man page -
14
15 fsr_xfs improves the organization of mounted filesystems. The
16 reorganization algorithm operates on one file at a time, compacting or
17 otherwise improving the layout of the file extents (contiguous blocks of
18 file data).
19
20 and -
21
22 When invoked with no arguments fsr_xfs reorganizes all regular files in
23 all mounted filesystems. fsr_xfs makes many cycles over /etc/mtab each
24 time making a single pass over each XFS filesystem. Each pass goes
25 through and selects files that have the largest number of extents. It
26 attempts to defragment the top 10% of these files on each pass.
27
28 and -
29
30 fsr_xfs improves the layout of extents for each file by copying the
31 entire file to a temporary location and then interchanging the data
32 extents of the target and temporary files in an atomic manner. This
33 method requires that enough free disk space be available to copy any
34 given file and that the space be less fragmented then the original file.
35 It also requires the owner of the file to have enough remaining filespace
36 quota to do the copy on systems running quotas. fsr_xfs generates a
37 warning message if space is not sufficient to improve the target file.
38
39 Note - IRIX it's fsr_xfs and Linux it's xfs_fsr.
40
41 Thus it may not, as you point out, perform the operations that you want it too.
42
43 xfs_fsr/fsr_xfs was designed to deal with multi-gigabyte and terabyte files. Not
44 to free up space in small partitions.
45
46 Bob
47 -
48 --
49 gentoo-amd64@g.o mailing list

Replies

Subject Author
Re: [gentoo-amd64] Fragmentation (Was: Re: Re: Re: Wow! KDE 3.5.1 & Xorg 7.0 w/ Composite) Richard Fish <bigfish@××××××××××.org>