RE: lower cpu priority to perl scripts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Audio,

You can always start your scripts with [re]nice() syscall to lower
your process (perl script in this case) priority.

Regards,
Tamer

-----Original Message-----
From: Audio Phile [mailto:da_audiophile@xxxxxxxxx]
Sent: Tuesday, August 26, 2008 8:57 PM
To: users@xxxxxxxxxxxxxxxx
Subject:  lower cpu priority to perl scripts

I'd like to adjust the priority of /usr/bin/perl such that it will always run with very low priority.  The PC that I'm using isn't very powerful.  I'm running rrdweather on it and when a user hits the weather.cgi about 10 processes of perl scripts run,
which totally throttles foreground applications until they finish.

How can I assign /usr/bin/perl to always run with a really low CPU priority (a really high nice value) for any script it executes? Is this an apache2 setting or...?





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux