177 lines
5.8 KiB
HTML
177 lines
5.8 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of E2FREEFRAG</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>E2FREEFRAG</H1>
|
|
Section: Maintenance Commands (8)<BR>Updated: January 2020<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
e2freefrag - report free space fragmentation information
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>e2freefrag</B>
|
|
|
|
[
|
|
<B>-c chunk_kb</B>
|
|
|
|
]
|
|
[
|
|
<B>-h</B>
|
|
|
|
]
|
|
<B>filesys</B>
|
|
|
|
<P>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>e2freefrag</B>
|
|
|
|
is used to report free space fragmentation on ext2/3/4 file systems.
|
|
<I>filesys</I>
|
|
|
|
is the filesystem device name (e.g.
|
|
<I>/dev/hdc1</I>, <I>/dev/md0</I>).
|
|
|
|
The
|
|
<B>e2freefrag</B>
|
|
|
|
program will scan the block bitmap information to check how many free blocks
|
|
are present as contiguous and aligned free space. The percentage of contiguous
|
|
free blocks of size and of alignment
|
|
<I>chunk_kb</I>
|
|
|
|
is reported. It also displays the minimum/maximum/average free chunk size in
|
|
the filesystem, along with a histogram of all free chunks. This information
|
|
can be used to gauge the level of free space fragmentation in the filesystem.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-c</B><I> chunk_kb</I>
|
|
|
|
<DD>
|
|
If a chunk size is specified, then
|
|
<B>e2freefrag</B>
|
|
|
|
will print how many free chunks of size
|
|
<I>chunk_kb</I>
|
|
|
|
are available in units of kilobytes (Kb). The chunk size must be a
|
|
power of two and be larger than filesystem block size.
|
|
<DT id="2"><B>-h</B>
|
|
|
|
<DD>
|
|
Print the usage of the program.
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>EXAMPLE</H2>
|
|
|
|
# e2freefrag /dev/vgroot/lvhome
|
|
<BR>
|
|
|
|
Device: /dev/vgroot/lvhome
|
|
<BR>
|
|
|
|
Blocksize: 4096 bytes
|
|
<BR>
|
|
|
|
Total blocks: 1504085
|
|
<BR>
|
|
|
|
Free blocks: 292995 (19.5%)
|
|
<BR>
|
|
|
|
<P>
|
|
Min. free extent: 4 KB
|
|
<BR>
|
|
|
|
Max. free extent: 24008 KB
|
|
<BR>
|
|
|
|
Avg. free extent: 252 KB
|
|
<BR>
|
|
|
|
<P>
|
|
HISTOGRAM OF FREE EXTENT SIZES:
|
|
<BR>
|
|
|
|
Extent Size Range : Free extents Free Blocks Percent
|
|
<BR>
|
|
|
|
<BR> 4K... 8K- : 704 704 0.2%
|
|
<BR>
|
|
|
|
<BR> 8K... 16K- : 810 1979 0.7%
|
|
<BR>
|
|
|
|
<BR> 16K... 32K- : 843 4467 1.5%
|
|
<BR>
|
|
|
|
<BR> 32K... 64K- : 579 6263 2.1%
|
|
<BR>
|
|
|
|
<BR> 64K... 128K- : 493 11067 3.8%
|
|
<BR>
|
|
|
|
<BR> 128K... 256K- : 394 18097 6.2%
|
|
<BR>
|
|
|
|
<BR> 256K... 512K- : 281 25477 8.7%
|
|
<BR>
|
|
|
|
<BR> 512K... 1024K- : 253 44914 15.3%
|
|
<BR>
|
|
|
|
<BR> 1M... 2M- : 143 51897 17.7%
|
|
<BR>
|
|
|
|
<BR> 2M... 4M- : 73 50683 17.3%
|
|
<BR>
|
|
|
|
<BR> 4M... 8M- : 37 52417 17.9%
|
|
<BR>
|
|
|
|
<BR> 8M... 16M- : 7 19028 6.5%
|
|
<BR>
|
|
|
|
<BR> 16M... 32M- : 1 6002 2.0%
|
|
<A NAME="lbAG"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
This version of e2freefrag was written by Rupesh Thakare, and modified by
|
|
Andreas Dilger <<A HREF="mailto:adilger@sun.com">adilger@sun.com</A>>, and Kalpak Shah.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<I><A HREF="/cgi-bin/man/man2html?8+debugfs">debugfs</A></I>(8),
|
|
|
|
<I><A HREF="/cgi-bin/man/man2html?8+dumpe2fs">dumpe2fs</A></I>(8),
|
|
|
|
<I><A HREF="/cgi-bin/man/man2html?8+e2fsck">e2fsck</A></I>(8)
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="3"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="4"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="5"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="6"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="7"><A HREF="#lbAF">EXAMPLE</A><DD>
|
|
<DT id="8"><A HREF="#lbAG">AUTHOR</A><DD>
|
|
<DT id="9"><A HREF="#lbAH">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:12 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|