| LFS_CLEANERD(8) | System Manager's Manual | LFS_CLEANERD(8) |
lfs_cleanerd —
garbage collect a log-structured file system
lfs_cleanerd |
[-bcDdfmqs] [-i
segment-number] [-J
raw-device] [-l
load-threshold] [-n
number-of-segments] [-r
report-frequency] [-S
semaphore-address] [-t
timeout] node |
The lfs_cleanerd command starts a daemon
process which garbage-collects the log-structured file system residing at
the point named by node in the global file system
namespace. This command is normally executed by
mount_lfs(8) when the
log-structured file system is mounted. The daemon will exit within a few
minutes of when the file system it was cleaning is unmounted.
Garbage collection on a log-structured file system is done by scanning the file system's segments for active, i.e. referenced, data and copying it to new segments. When all of the active data in a given segment has been copied to a new segment that segment can be marked as empty, thus reclaiming the space taken by the inactive data which was in it.
The following options are available:
-b-c-D-d).-d-d s give more detailed
debugging information.-f-i
segment-number-J
raw device-l
load-threshold-m-n
number-of-segments-b was also given, pass this many segments' worth
of blocks through a single call to lfs_markv.-q-r
report-frequency-S
semaphore addresslfs_cleanerd.-s-t
timeoutlfs_cleanerd will be automatically
awakened when the filesystem is active, so it is not usually necessary to
set timeout to a low value.lfs_bmapv(2), lfs_markv(2), lfs_segwait(2), mount_lfs(8), rump_lfs(8)
The lfs_cleanerd utility first appeared in
4.4BSD.
| August 6, 2009 | NetBSD 11.0 |