doiflush
Parameter
- Description
-
Controls whether file system metadata syncs will be executed during
fsflush
invocations. This synchronization is done every Nth invocation offsflush
where N= (autoup / tune_t_fsflushr)
. Because this algorithm is integer division, iftune_t_fsflushr
is greater thanautoup
, a synchronization is done on every invocation offsflush
because the code checks to see if its iteration counter is greater than or equal to N. Note that N is computed once on invocation offsflush
. Later changes totune_t_fsflushr
orautoup
have no effect on the frequency of synchronization operations. - Data Type
-
Signed integer
- Default
-
1 (enabled)
- Range
-
0 (disabled) or 1 (enabled)
- Units
-
Toggle (on/off)
- Dynamic?
-
Yes
- Validation
-
None
- When to Change
-
When files are frequently modified over a period of time and the load caused by the flushing perturbs system behavior.
Files whose existence, and therefore consistency of state, does not matter if the system reboots are better kept in a TMPFS file system (for example,
/tmp
). Inode traffic can be reduced on systems by using themount
‐noatime option. This option eliminates inode updates when the file is accessed.For a system engaged in realtime processing, you might want to disable this option and use explicit application file synchronizing to achieve consistency.
- Commitment Level
-
Unstable