LogoopenSUSE Build Service > Projects
Sign Up | Log In

Auto Nice Daemon (AND)

The auto nice daemon (AND) activates itself in certain intervals and renices jobs according to their priority and CPU usage. Jobs owned by root are left alone. Jobs are never increased in their priority.

If you need to increase the priority of a job, like cdrecord or MP3 or DVD players, this isn't really a job for and(8) but for a wrapper. Due to popular demand, I wrote such a wrapper. Get the code.

AND is very flexible. The renice intervals can be adjusted as well as the default nice level and the activation intervals. A priority database stores user/group/job/ancestor tuples along with their renice values for three CPU usage time ranges. Negative nice levels are interpreted as signals to be sent to a process, triggered by CPU usage; this way, Netscapes going berserk can be killed automatically. The strategy for searching the priority database can be configured.

AND also provides network-wide configuration files with host-specific sections, as well as wildcard/regexp support for commands in the priority database.

Iterating through the list of processes is a highly O/S-specific task, so AND will only run on the O/Ses listed on the left.


Source Files

Filename Size Changed Actions
0001_Makefile.patch 976 Bytes Download File
and-1.2.2.tar.gz 29.3 KB Download File
and.changes 380 Bytes Download File
and.service 170 Bytes Download File
and.spec 2.74 KB Download File
and.sysconfig 72 Bytes Download File

Comments for home:lnt-sysadmin:tools (0)

Login required, please login or signup in order to comment