1NILFS_CLEANERD.CONF(5) File Formats Manual NILFS_CLEANERD.CONF(5)
2
3
4
6 nilfs_cleanerd.conf - nilfs_cleanerd(8) configuration file
7
9 The nilfs_cleanerd.conf file is the configuration file for the
10 nilfs_cleanerd(8) which reclaims disk space of the NILFS2 filesystem.
11 This file specifies the parameters related to garbage collection (GC)
12 and behaviour of the daemon program.
13
14 The file contains keyword argument pairs or keyword-only directives,
15 one per line. Lines starting with '#' are interpreted as comments.
16 The comment lines and empty lines are ignored.
17
19 The possible keywords and their meanings are as follows (keywords and
20 arguments are both case-sensitive):
21
22 protection_period
23 Specify the period during which each checkpoint is protected
24 from the garbage collector (in seconds). NILFS2 GC never
25 deletes checkpoints and their blocks whose duration time is less
26 than the value. The default value is 3600, meaning one hour.
27
28 min_clean_segments
29 Specify the minimum number of clean segments. A value of 0 means
30 continuous cleaning. A value greater than 0 means pause cleaning
31 until less than min_clean_segments are available.
32
33 max_clean_segments
34 Specify the maximum number of clean segments. If min_clean_seg‐
35 ments is 0, this value is ignored. If more than max_clean_seg‐
36 ments are available cleaning is paused until less than
37 min_clean_segments are available.
38
39 min_clean_segments and max_clean_segments may be followed by a percent
40 sign or the following multiplicative suffixes: kB 1000, K 1024, MB
41 1000*1000, M 1024*1024, GB 1000*1000*1000, G 1024*1024*1024, and so on
42 for T, P, E. If the argument is followed by a percent sign, it repre‐
43 sents a disk capacity ratio.
44
45 The default values of min_clean_segments and max_clean_segments are 10
46 percent and 20 percent respectively.
47
48 clean_check_interval
49 Specify the interval to wait between checks of min_clean_seg‐
50 ments. If min_clean_segments is 0, this value is ignored. The
51 default value is 10.
52
53 selection_policy
54 Specify the GC policy. At present, only the `timestamp' policy,
55 which reclaims segments in order from oldest to newest, is sup‐
56 port.
57
58 nsegments_per_clean
59 Specify the number of segments reclaimed by a single cleaning
60 step. The default value is 2.
61
62 mc_nsegments_per_clean
63 Specify the number of segments reclaimed by a single cleaning
64 step if clean segments < min_clean_segments. The default value
65 is 4.
66
67 cleaning_interval
68 Specify the cleaning interval in seconds. The default value is
69 5.
70
71 mc_cleaning_interval
72 Specify the cleaning interval in seconds if clean segments <
73 min_clean_segments. The default value is 1.
74
75 retry_interval
76 Specify retry interval in seconds. This value provides the
77 retry interval of GC in case of resource shortages. The default
78 value is 60.
79
80 use_mmap
81 Specify whether to use mmap(2) for reading segments. At
82 present, this option is enabled if supported regardless of this
83 directive.
84
85 log_priority
86 Gives the verbosity level that is used when logging messages
87 from nilfs_cleanerd(8). The possible values are: emerg, alert,
88 crit, err, warning, notice, info, and debug. The default is
89 info.
90
92 /etc/nilfs_cleanerd.conf
93 Configuration file for nilfs_cleanerd(8).
94
96 nilfs_cleanerd(8).
97
98
99
100nilfs-utils version 2.0 May 2008 NILFS_CLEANERD.CONF(5)