PDA

View Full Version : setting priority on php


felosi
08-25-2007, 11:48 PM
the priority setting feature on external app > php config in litespeed admin.

When you set the priority for that is it supposed to now start all lsphp processes at that nice?

Reason being I noticed when I was doing some things in the server getting the load high. Things like backups, deleting big files, etc that gets the load up high I noticed on about 7 and up that the php sites start lagging very badly but the static html sites still loaded fine.

So I was gonna try that and see if it helped but I didnt see any different nice in top, still was 0. Is it supposed to do this?

mistwang
08-26-2007, 05:00 PM
It is not allowed to set external app's priority lower than web server processes' priority. If you want to assign PHP process with higher priority, you need to give lshttpd higher priority as well.

felosi
08-27-2007, 10:41 AM
Ok I seen an article on doing this for nagios and apache.

http://www.linickx.com/blog/archives/285/process-scheduling-is-nice/

tried it on lsws in /etc/init.d but I dont think I was putting the line in start right. How could I go about doing it? And do you think this will have some adverse reactions?

mistwang
08-27-2007, 07:51 PM
You do not need to change the script, just change the server priority from web admin console.

felosi
08-28-2007, 07:23 AM
You do not need to change the script, just change the server priority from web admin console.

Cant belive I didnt see that server setting that would have made things more clear lol. Find out new stuff about litespeed everyday.

Oh yeah does anyone have any feedback on what the cons of doing this would be?