Commit 37515fac authored by Theodore Ts'o's avatar Theodore Ts'o

ext4: Improve the documentation for ext4's /proc tunables

Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
Cc: Alex Tomas <bzzz@sun.com>
Cc: Andreas Dilger <adilger@sun.com>
parent 5e8814f2
...@@ -923,45 +923,41 @@ CPUs. ...@@ -923,45 +923,41 @@ CPUs.
The "procs_blocked" line gives the number of processes currently blocked, The "procs_blocked" line gives the number of processes currently blocked,
waiting for I/O to complete. waiting for I/O to complete.
1.9 Ext4 file system parameters 1.9 Ext4 file system parameters
------------------------------ ------------------------------
Ext4 file system have one directory per partition under /proc/fs/ext4/
# ls /proc/fs/ext4/hdc/ Information about mounted ext4 file systems can be found in
group_prealloc max_to_scan mb_groups mb_history min_to_scan order2_req /proc/fs/ext4. Each mounted filesystem will have a directory in
stats stream_req /proc/fs/ext4 based on its device name (i.e., /proc/fs/ext4/hdc or
/proc/fs/ext4/dm-0). The files in each per-device directory are shown
mb_groups: in Table 1-10, below.
This file gives the details of multiblock allocator buddy cache of free blocks
Table 1-10: Files in /proc/fs/ext4/<devname>
mb_history: ..............................................................................
Multiblock allocation history. File Content
mb_groups details of multiblock allocator buddy cache of free blocks
stats: mb_history multiblock allocation history
This file indicate whether the multiblock allocator should start collecting stats controls whether the multiblock allocator should start
statistics. The statistics are shown during unmount collecting statistics, which are shown during the unmount
group_prealloc the multiblock allocator will round up allocation
group_prealloc: requests to a multiple of this tuning parameter if the
The multiblock allocator normalize the block allocation request to stripe size is not set in the ext4 superblock
group_prealloc filesystem blocks if we don't have strip value set. max_to_scan The maximum number of extents the multiblock allocator
The stripe value can be specified at mount time or during mke2fs. will search to find the best extent
min_to_scan The minimum number of extents the multiblock allocator
max_to_scan: will search to find the best extent
How long multiblock allocator can look for a best extent (in found extents) order2_req Tuning parameter which controls the minimum size for
requests (as a power of 2) where the buddy cache is
min_to_scan: used
How long multiblock allocator must look for a best extent stream_req Files which have fewer blocks than this tunable
parameter will have their blocks allocated out of a
order2_req: block group specific preallocation pool, so that small
Multiblock allocator use 2^N search using buddies only for requests greater files are packed closely together. Each large file
than or equal to order2_req. The request size is specfied in file system will have its blocks allocated out of its own unique
blocks. A value of 2 indicate only if the requests are greater than or equal preallocation pool.
to 4 blocks. ..............................................................................
stream_req:
Files smaller than stream_req are served by the stream allocator, whose
purpose is to pack requests as close each to other as possible to
produce smooth I/O traffic. Avalue of 16 indicate that file smaller than 16
filesystem block size will use group based preallocation.
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
Summary Summary
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment