tcl.set-flush

Verb: Access/TCL, Releases: AP/Unix and AP 6.1

Sets the flush period.

Syntax

set-flush {{period}{,force.period}} {(options} set-flush {{period}{,off}} {(options} set-flush {{period}{,imm}} {(options}

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.

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.

See Also

Command Name Type Description
basic.%setflush C Function Sets flush period.
tcl.flush Verb: Access Flushes write-required frames to disk.
tcl.buffers Verb: Access Displays virtual memory buffer status.
tcl.buffers.g Verb: Access Produces histogram of system performance.
tcl.user-coldstart Verb: Access Invokes user-defined coldstart sequence.
flusher Definition Description of flusher.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.