Notices


Reply
Thread Tools
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#1
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.

Warning: cpufreq sucks on the tablets so don't start pissin on me if everyting gets killed. Also, this is quite old.

Edit, I compiled the wrapper mentioned:
http://www.mediafire.com/?hyyx2lddcgs
Attached Files
File Type: deb and_1.2.2-2.1_armel.deb (26.2 KB, 130 views)

Last edited by qwerty12; 2008-06-23 at 16:42.
 

The Following User Says Thank You to qwerty12 For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#2
Ok, here is some more programs. Learn how to set them up yourself.

I also have a prelink but am unsure whether to share because messing that up can mess up the tablet.

BTW: The 28 mofos at the time of typing and the rest of you that will do it can piss off. Knobs.
Attached Files
File Type: deb preload_0.4-5_armel.deb (36.1 KB, 101 views)
File Type: deb readahead_1.20060421.1016-3_armel.deb (21.5 KB, 66 views)
File Type: deb ld.so.preload-manager_0.3.3-3_all.deb (4.5 KB, 90 views)
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:47.