tcl.set-flush Verb: Access/TCL

tcl.set-flush

Command tcl.set-flush Verb: Access/TCL
Applicable release versions: AP/Unix, AP 6.1
Category TCL (746)
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" (AP 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.
Syntax set-flush {{period}{,force.period}} {(options}
set-flush {{period}{,off}} {(options}
set-flush {{period}{,imm}} {(options}
Options q Quiet mode. Suppresses all terminal output.
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.
Purpose
Related basic.%setflush
tcl.flush
tcl.buffers
tcl.buffers.g
tcl.user-coldstart
flusher