| set-floppy | Index Level | set-func |
| Syntax |
set-flush {{period}{,force.period}} {(options}
set-flush {{period}{,off}} {(options} set-flush {{period}{,imm}} {(options} |
| Category | TCL |
| Type | Verb |
| Description |
displays or changes the value of the period of the flush and of the forced flush.
"period" is the new period (in seconds) with which the flush process will wake up automatically to write "dirty" (write-required) frames back to disk. The valid range is from 500 to 32000 milliseconds (0.5 to 32 secs). If "period" is not specified, the current flush period is displayed. The default period is defined at boot time by the "flush" statement in the configuration file. "force.period" (release 6.1 only) is the new period (in seconds) with which the flush process will wake up automatically to write all buffers containing data belonging to the file system (item, indexes, etc...). This period is the guaranteed time after which an update to a protected file will be written to disk (see "flusher" for a more detailed explanation of this functionality). The following values have a special meaning: 0 All writes are done by the process itself. In other words, when a process updates an item, for example, the process waits until the write is done. The keyword "imm" can be used to specify this option. -1 The forced flush mechanism is disabled. With this option, there is no guaranteed time for an update to the file system to be written to disk. The keyword "off" can be used to specify this option. The default period is defined at boot time by the "fflush" statement in the configuration file. |
| Options | q Quiet mode. Suppresses all terminal output. |
| See Also | %SETFLUSH flush buffers buffers.g user-coldstart flusher |
| Example |
set-flush
Flush period 10 s. Forced flush period 5 s. This indicates that the current "flush" period is set at 10 seconds, and the forced flush period is 5 seconds. set-flush ,imm Flush period 10 s. Forced flush IMMEDIATE. Set the forced flush in immediate mode. The normal flush period is not changed. set-flush 30,off Flush period 30 s. Forced flush OFF. Disable the forced flush in immediate mode and set the normal flush period to 30 seconds. |
| Warnings |
The AP/Native, AP/DOS and R83 default period for flushing is 3, and is unchangeable, since they don't have a "set-flush" verb available.
The forced flush is a 6.1 option. |
| Compatibility | D3/Unix AP 6.1 |
| set-floppy | Index Level | set-func |