Grex Jellyware Conference

Item 80: Automatically re-nice long-running processes

Entered by gull on Wed Aug 22 17:11:36 2007:

I need a program to automatically re-nice user processes that have
consumed more than a certain amount of CPU time.  Poking around, I've
found 'reniced', which re-nices by process name, but that's not quite
what I want.

Before I hack something up in Perl, can anyone suggest a package that
does this?  It seems like something that would be fairly commonly wanted
on multiuser systems.
9 responses total.

#1 of 9 by gull on Wed Aug 22 18:05:23 2007:

I also asked on the Debian list, and someone came up with "and" (auto
renice daemon), which looks like it will do what I want.


#2 of 9 by djdoboy on Thu Aug 23 00:18:55 2007:

Are you really this nharmon stupid?


#3 of 9 by unicorn on Thu Aug 23 00:46:03 2007:

Are you as obnoxious and arrogant in person as you are online?


#4 of 9 by djdoboy on Thu Aug 23 01:35:38 2007:

Chuck, pull my finger.


#5 of 9 by twenex on Thu Aug 23 07:42:26 2007:

Re: #3. If he is, I doubt he will be for long. Unless he's rich.

(And he wouldn't get rich by continually posting crap on grex, that's for
sure.)


#6 of 9 by keesan on Thu Aug 23 16:02:43 2007:

Could people please ignore twits?  I have filtered responses 2 and 4 but now
I have to read reactions to them.


#7 of 9 by unicorn on Thu Aug 23 18:28:00 2007:

#5:  I was actually thinking that if he is, it's no wonder he has to
download porn.  :D


#8 of 9 by nharmon on Fri Aug 24 14:35:20 2007:

Not to mention sweep floors for a paycheck.


#9 of 9 by dtk on Mon Jan 7 01:11:16 2013:

You might want to be cautious about this and either whitelist known good
 daemons or ignore anything being run by a service-account. Otherwise,
you  might wind up cratering SSHD, locking veryone out, and preventing
yourself  from fixing.  -DTK


There are no more items selected.

You have several choices: