NILFS_CLEANERD.CONF(5)
β¨ NAME β¨
nilfs_cleanerd.conf β bestie, it's the config file for nilfs_cleanerd(8) π
π DESCRIPTION π
Okay so. The nilfs_cleanerd.conf file is the configuration file for nilfs_cleanerd(8), which is the lil daemon that reclaims disk space on your NILFS2 filesystem. This file is where you tell it all the parameters for garbage collection (GC) and how the daemon program should behave. It's giving β¨control freakβ¨ but in a good way.
The file holds keyword argument pairs or keyword-only directives, one per line. Lines that start with # are read as comments. Comment lines and empty lines? Ignored, we don't see them, they're not real π«Ά
π PARAMETERS π
Here's every keyword and what it means (and heads up bestie β keywords AND arguments are both case-sensitive, so don't get cute with the caps):
protection_periodβ Sets the period during which each checkpoint is protected from the garbage collector, in seconds. NILFS2 GC will never delete checkpoints and their blocks whose duration time is less than this value. The default value is3600, meaning one hour. β³min_clean_segmentsβ Sets the minimum number of clean segments. A value of0means continuous cleaning. A value greater than0means pause cleaning until less thanmin_clean_segmentsare available.max_clean_segmentsβ Sets the maximum number of clean segments. Ifmin_clean_segmentsis0, this value is ignored. If more thanmax_clean_segmentsare available, cleaning is paused until less thanmin_clean_segmentsare available.
min_clean_segments and max_clean_segments may be followed by a percent sign or the following multiplicative suffixes: kB 1000, K 1024, MB 1000*1000, M 1024*1024, GB 1000*1000*1000, G 1024*1024*1024, and so on for T, P, E. If the argument is followed by a percent sign, it represents a disk capacity ratio.
The default values of min_clean_segments and max_clean_segments are 10 percent and 20 percent respectively. πΈ
clean_check_intervalβ Sets the interval to wait between checks ofmin_clean_segments. Ifmin_clean_segmentsis0, this value is ignored. The default value is10.selection_policyβ Sets the GC policy. At present, only thetimestamppolicy, which reclaims segments in order from oldest to newest, is supported. (So yeah, that's the only one on the menu rn π)nsegments_per_cleanβ Sets the number of segments reclaimed by a single cleaning step. The default value is2.mc_nsegments_per_cleanβ Sets the number of segments reclaimed by a single cleaning step if clean segments <min_clean_segments. The default value is4.cleaning_intervalβ Sets the cleaning interval in seconds. The default value is5.mc_cleaning_intervalβ Sets the cleaning interval in seconds if clean segments <min_clean_segments. The default value is1.retry_intervalβ Sets the retry interval in seconds. This value provides the retry interval of GC in case of resource shortages. The default value is60.use_mmapβ Sets whether to usemmap(2)for reading segments. At present, this option is enabled if supported regardless of this directive. (So likeβ¦ it does what it wants π)use_set_suinfoβ Sets whether to use theset_suinfoioctl if it is supported. This is necessary for themin_reclaimable_blocksfeature. By disabling this switch,min_reclaimable_blocksis also disabled. πmin_reclaimable_blocksβ Sets the minimum number of reclaimable blocks in a segment before it can be cleaned.mc_min_reclaimable_blocksβ Sets the minimum number of reclaimable blocks in a segment before it can be cleaned, if clean segments <min_clean_segments.
min_reclaimable_blocks and mc_min_reclaimable_blocks may be followed by a percent sign or the following multiplicative suffixes: kB 1000, K 1024, MB 1000*1000, M 1024*1024, GB 1000*1000*1000, G 1024*1024*1024, and so on for T, P, E. If the argument is followed by a percent sign, it represents the ratio of blocks in a segment.
The default values of min_reclaimable_blocks and mc_min_reclaimable_blocks are 10 percent and 1 percent respectively. β¨
log_priorityβ Gives the verbosity level that is used when logging messages fromnilfs_cleanerd(8). The possible values are:emerg,alert,crit,err,warning,notice,info, anddebug. The default isinfo. π’
Since nilfs-utils 2.1, subsecond values can be specified for time interval parameters in decimal fraction format. This applies to protection_period, clean_check_interval, cleaning_interval, mc_cleaning_interval, and retry_interval. πβ¨
π¦ FILES π¦
/etc/nilfs_cleanerd.confβ Configuration file fornilfs_cleanerd(8).
π SEE ALSO π
ok bestie that's the whole page, no cap. go forth and configure, you absolute icon π«Άπ
nilfs-utils version 2.3 Β· Jan 2026 Β· mwah, that's the sign-off, slay π πβ
π¦ where this page comes from
- alpine 3.24: nilfs-utils-doc 2.3.0-r0 Β· GPL-2.0-or-later
- arch rolling: nilfs-utils 2.3.1-1 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- nixpkgs unstable: nilfs-utils 2.3.1
- Copyright (C) 2007-2012 Nippon Telegraph and Telephone Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms