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 is 3600, meaning one hour. ⏳
  • min_clean_segments β€” Sets the minimum number of clean segments. A value of 0 means continuous cleaning. A value greater than 0 means pause cleaning until less than min_clean_segments are available.
  • max_clean_segments β€” Sets the maximum number of clean segments. If min_clean_segments is 0, this value is ignored. If more than max_clean_segments are available, cleaning is paused until less than min_clean_segments are 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 of min_clean_segments. If min_clean_segments is 0, this value is ignored. The default value is 10.
  • selection_policy β€” Sets the GC policy. At present, only the timestamp policy, 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 is 2.
  • mc_nsegments_per_clean β€” Sets the number of segments reclaimed by a single cleaning step if clean segments < min_clean_segments. The default value is 4.
  • cleaning_interval β€” Sets the cleaning interval in seconds. The default value is 5.
  • mc_cleaning_interval β€” Sets the cleaning interval in seconds if clean segments < min_clean_segments. The default value is 1.
  • retry_interval β€” Sets the retry interval in seconds. This value provides the retry interval of GC in case of resource shortages. The default value is 60.
  • use_mmap β€” Sets whether to use mmap(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 the set_suinfo ioctl if it is supported. This is necessary for the min_reclaimable_blocks feature. By disabling this switch, min_reclaimable_blocks is 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 from nilfs_cleanerd(8). The possible values are: emerg, alert, crit, err, warning, notice, info, and debug. The default is info. πŸ“’

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 πŸ¦‹


πŸ‘‘ 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