Whamcloud - gitweb
e2freefrag: Clarify e2freefrag's messages
[tools/e2fsprogs.git] / misc / e2freefrag.8.in
1 .\" -*- nroff -*-
2 .TH E2FREEFRAG 8
3 .SH NAME
4 e2freefrag \- report free space fragmentation information
5 .SH SYNOPSIS
6 .B e2freefrag
7 [
8 .B \-c chunk_kb
9 ]
10 [
11 .B \-h
12 ]
13 .B filesys
14
15 .SH DESCRIPTION
16 .B e2freefrag
17 is used to report free space fragmentation on ext2/3/4 file systems.
18 .I filesys
19 is the filesystem device name (e.g.
20 .IR /dev/hdc1 ", " /dev/md0 ).
21 The
22 .B e2freefrag
23 program will scan the block bitmap information to check how many free blocks
24 are present as contiguous and aligned free space. The percentage of contiguous
25 free blocks of size and of alignment
26 .IR chunk_kb
27 is reported.  It also displays the minimum/maximum/average free chunk size in
28 the filesystem, along with a histogram of all free chunks.  This information
29 can be used to gauge the level of free space fragmentation in the filesystem.
30 .SH OPTIONS
31 .TP
32 .BI \-c " chunk_kb"
33 Desired size of chunk. It is specified in units of kilobytes (KB). If no
34 .I chunk_kb
35 is specified on the command line, then the default value is 1024KB.
36 .TP
37 .BI \-h
38 Print the usage of the program.
39 .SH EXAMPLE
40 # e2freefrag /dev/vgroot/lvhome
41 .br
42 Device: /dev/vgroot/lvhome
43 .br
44 Blocksize: 4096 bytes
45 .br
46 Total blocks: 1504085
47 .br
48 Free blocks: 292995 (19.5%)
49 .br
50 Chunk size: 1048576 bytes (256 blocks)
51 .br
52 Total chunks: 5876
53 .br
54 Free chunks: 463 (7.9%)
55 .br
56
57 Min. free extent: 4 KB
58 .br
59 Max. free extent: 24008 KB
60 .br
61 Avg. free extent: 252 KB
62 .br
63
64 HISTOGRAM OF FREE EXTENT SIZES:
65 .br
66 Extent Size Range :   Free extents   Free Blocks  Percent
67 .br
68     4K...    8K- :           704           704     0.2%
69 .br
70     8K...   16K- :           810          1979     0.7%
71 .br
72    16K...   32K- :           843          4467     1.5%
73 .br
74    32K...   64K- :           579          6263     2.1%
75 .br
76    64K...  128K- :           493         11067     3.8%
77 .br
78   128K...  256K- :           394         18097     6.2%
79 .br
80   256K...  512K- :           281         25477     8.7%
81 .br
82   512K... 1024K- :           253         44914    15.3%
83 .br
84     1M...    2M- :           143         51897    17.7%
85 .br
86     2M...    4M- :            73         50683    17.3%
87 .br
88     4M...    8M- :            37         52417    17.9%
89 .br
90     8M...   16M- :             7         19028     6.5%
91 .br
92    16M...   32M- :             1          6002     2.0%
93 .SH AUTHOR
94 This version of e2freefrag was written by Rupesh Thakare, and modified by
95 Andreas Dilger <adilger@sun.com>, and Kalpak Shah.
96 .SH SEE ALSO
97 .IR debugfs (8),
98 .IR dumpe2fs (8),
99 .IR e2fsck (8)