[ale] perl nice'ness

Brian Pitts brian at polibyte.com
Sun Oct 7 04:25:26 EDT 2007


Jim Popovitch wrote:
> On Sun, 2007-10-07 at 01:48 -0400, List wrote:
>> Jim Popovitch wrote:
>>> Is there a way to make perl scripts run nicer wrt to cpu utilization,
>>> rather than at the default 0 nice?
>>>
>>> Thx, 
>>>
>>> -Jim P.
>>>
>> nice -19 perl <args>
>>
>> or, if the script is already running,
>>
>> renice 19 <process-id-of-perl>
>>
>> ought to fix you up.
> 
> Well, I already know that... what I'm looking for is a way to
> force /usr/bin/blah.pl to always be nice 10 regardless of who runs it.
> 
> Thanks.

Perhaps you can replace /usr/bin/perl with a wrapper script that calls 
the actual perl binary with the appropriate niceness?

-Brian



More information about the Ale mailing list