CYTUNESection: Linux Programmer's Manual (8)
Updated: 4 Mar 1995
Return to Main Contents
NAMEcytune - Tune Cyclades driver parameters
SYNOPSIScytune [-q [-i interval]] ([-s value]|[-S value]) [-g|G] ([-t timeout]|[-T timeout]) tty [tty ...]
DESCRIPTIONcytune queries and modifies the interruption threshold for the Cyclades driver. Each serial line on a Cyclades card has a 12-byte FIFO for input (and another 12-byte FIFO for output). The "threshold" specifies how many input characters must be present in the FIFO before an interruption is raised. When a Cyclades tty is opened, this threshold is set to a default value based on baud rate:
If the threshold is set too low, the large number of interruptions can load the machine and decrease overall system throughput. If the threshold is set too high, the FIFO buffer can overflow, and characters will be lost. Slower machines, however, may not be able to deal with the interrupt load, and will require that the threshold be adjusted upwards.
If the cyclades driver was compiled with ENABLE_MONITORING defined, the cytune command can be used with the -q option to report interrupts over the monitoring interval and characters transferred over the monitoring interval. It will also report the state of the FIFO. The maximum number of characters in the FIFO when an interrupt occurred, the instantaneous count of characters in the FIFO, and how many characters are now in the FIFO are reported. This output might look like this:
This output indicates that for this monitoring period, the interrupts were always being handled within one character time, because max never rose above threshold. This is good, and you can probably run this way, provided that a large number of samples come out this way. You will lose characters if you overrun the FIFO, as the Cyclades hardware does not seem to support the RTS RS-232 signal line for hardware flow control from the DCE to the DTE. cytune will in query mode will produce a summary report when ended with a SIGINT or when the threshold or timeout is changed.
There may be a responsiveness vs. throughput tradeoff. The Cyclades card, at the higher speeds, is capable of putting a very high interrupt load on the system. This will reduce the amount of CPU time available for other tasks on your system. However, the time it takes to respond to a single character may be increased if you increase the threshold. This might be noticed by monitoring ping(8) times on a SLIP link controlled by a Cyclades card. If your SLIP link is generally used for interactive work such as telnet(1), you may want to leave the threshold low, so that characters are responded to as quickly as possible. If your SLIP link is generally used for file transfer, WWW, and the like, setting the FIFO to a high value is likely to reduce the load on your system while not significantly affecting throughput. Alternatively, see the -t or -T options to adjust the time that the cyclades waits before flushing its buffer. Units are 5ms.
If you are running a mouse on a Cyclades port, it is likely that you would want to maintain the threshold and timeout at a low value.
BUGSIf you run two copies of cytune at the same time to report statistics about the same port, the 'ints', 'chars', and 'max' value will be reset and not reported correctly. cytune(8) should prevent this, but does not.
AUTHORNick Simicich (firstname.lastname@example.org), with modifications by Rik Faith (email@example.com)
This document was created by man2html, using the manual pages.
Time: 23:45:13 GMT, March 01, 2024