and - Auto Nice Daemon
Jun. 27th, 2013 07:06 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
AND
auto nice daemon
He did it again, comrade system administrator!-- desperate Comrade Stanitzki, after some DAU again launched yet another un-niced 100+ CPU-hour job on a shared workstation. AND is here to help. It was born from the desparate cries of a thousand regular users suffering from above DAU.
The auto nice daemon 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.
http://packages.debian.org/wheezy/and
еще ---