VERSIONThis manual page documents and.conf for and version 1.2.2.
DESCRIPTIONThis is the general configuration file for and. It stores settings like the default nice level, the renice intervals, the three stages of renicing, and the affinity of the priority database, i.e. the weight of (user, group, command) when resolving nice levels from the database. These settings are described below.
Comments start with a # in the first column. Empty lines are ignored. Unlike with other configuration files, lines cannot be concatenated with a backslash. Furthermore, this file is case sensitive.
and allows for host-specific sections in the configuration file. These work as lines of the form on somehost and work as follows: the parser determines if the host name (as returned by gethostname) matches the extended regular expression that follows the on keyword. If it does, it just keeps processing the file as if nothing had happened. If it does not match, however, everything up to the next on keyword is skipped. So if you want to end a host-specific section, you must write on .* (which matches all hosts) to switch back to normal.
Don't forget to kill -HUP the auto nice daemon to enable the changes.
The default nice level. A number between 0 and 19. Jobs for which no
entry can be found in
are reniced to this level, regardless of the CPU time they've used
so far. If you prefer to renice unknown jobs gradually, you can do
so by supplying three asterisks as (user, group, command) tuple in
The default nice level is
The default interval between nice checks of the auto nice daemon,
in seconds. This value can be overridden by the
command-line option of
The default interval is
Ranges for the nice levels. Jobs with less than lv1time seconds
CPU time are not reniced; jobs between lv1time and lv2time seconds
are reniced to the first level in an.priorities; jobs between
lv2time and lv3time seconds to the second level; jobs with more
than lv3time seconds are reniced to the third level.
- minuid, mingid
Minimum user id and group id to be considered for renicing.
Processes whose user id is below
are left alone, as are processes with a group id of below
(Note that even if you set minuid to zero, root processes are
Strategy for picking the right priority entry for a user/group/job
triple. The strategy is a permutation of "cgu", "c"ommand, "g"roup,
"u"ser. The order specifies the affinity of the priority lookup
method. Suppose you have an entry for all jobs of user
another entry for all jobs of group
and yet another entry for the command
Furthermore suppose user
(who happens to belong to group
) starts a job named
-- which entry should be chosen? This is what the affinity setting
means, for example "cug" means an exact match of the command has priority
over both an exact match of the user and the group. The default affinity is
"cug", which is probably sensible for most cases, since it's the job
which takes up CPU time, not the user or group ID.
- Default Configuration
# This is the default configuration:
- Default Configuration, with terminals
# Normal default configuration for all
# Hosts foo, bar, baz are terminals and must
# be more responsive, so earlier renice.
# This is for all hosts again
- Group-specific Hosts
# Normal affinity for all hosts.
# Hosts bar, baz belong to group foo, which
# is privileged on these hosts, so override
# affinity. (Note regexp!)
General configuration file. Stores default nice level, default interval,
the "time zones" and the database lookup affinity. This is what this
manual page is about.
AUTHORThe auto nice daemon and this manual page were written by Patrick Schemitz <[email protected]>