|
|

04-08-2008, 06:33 PM
|
|
Senior Member
|
|
Join Date: Nov 2007
Location: New York
Posts: 723
|
|
CPU usage consumption
Hi,
When I switched to lsphp5 for nearly 2 days, the CPU usage is mostly consumed by nice. On the other hand, when server is running on lsphp4..the CPU usage is mostly consumed by user.
Can you explain this behavior? I'm not sure if it's a good or bad thing. Thanks for your help.

Last edited by anewday; 04-08-2008 at 07:01 PM..
|

04-08-2008, 06:53 PM
|
|
LiteSpeed Staff
|
|
Join Date: Jul 2003
Location: New Jersey, USA
Posts: 99
|
|
|
When "priority" is set for lsphp external app, the CPU usage will be counted as nice.
|

04-08-2008, 07:04 PM
|
|
Senior Member
|
|
Join Date: Nov 2007
Location: New York
Posts: 723
|
|
|
I just checked external app, lsphp4 priority is set to 0 whereas lsphp5 is "not set". The CPU usage is counted as user, contrary to what you've said.
What is a good value to set for priority of lsphp4 and lsphp5 ?
Last edited by anewday; 04-08-2008 at 07:09 PM..
|

04-09-2008, 09:21 AM
|
|
LiteSpeed Staff
|
|
Join Date: Jul 2003
Location: New Jersey, USA
Posts: 99
|
|
|
when priority is 0, it will be counted as user, default value for external process is the server process priority + 1, so if lsphp5 is not set, it may default to 1. If it is not 0, it will be counted as nice in the "top" output.
priority 0 or 1 does not make much difference.
|

04-10-2008, 11:56 AM
|
|
Senior Member
|
|
Join Date: Jan 2008
Posts: 275
|
|
Hello
I am having problem with litespeed nowadays. The high server load problem
The server configuration is as follows
Intel Xeon Dual Core
4GB RAM
100mbps uplink
cPanel/WHM
The server load is always like 5-10
It will go down to less than 1 sometimes,
The sites are loading fine ,but dont know why the server load is staying high

I checked top and found many times, EXIM is also causing the server load other than lsphp4. I contacted cPanel for checking this and here is the reply
Vivek,
I am not seeing this, however I am seeing that litespeed httpd's implementation of php is causing your load issues. Exim does not appear to be using any significant load at all.
--
Thank You,
Matt Dees
Technical Analyst 2
cPanel, Inc.
So, is there any performance tuning for litespeed?
Thanks in advance
Vivek
Last edited by vivek; 04-11-2008 at 09:17 AM..
|

04-10-2008, 11:58 AM
|
|
Senior Member
|
|
Join Date: Jan 2008
Posts: 275
|
|
|
I also tried to swtch back to Apache for some hours and found low server load.
|

04-10-2008, 12:14 PM
|
|
Senior Member
|
|
Join Date: Nov 2007
Location: New York
Posts: 723
|
|
Your config is identical, mine is a core2duo xeon 3060.
What is your iowait when the load is high? I noticed the load jumps up to almost 2 when iowait hits 20% and higher for a period of a 2 seconds or more and the load only drops when iowait is returns to normal. Sometimes, it reaches almost 3. Most of the time, load is under 1 though. But, I wonder why it spikes like that, Apache does't behave this way.
I think the lsphp process is causing the high loads too, it's always listed in the max cpu usage on WHM. There is over 2.5G of free ram according to free -m no bottlenecks on my system.
PS what prog did you use to make this pic: http://status.suntexhosting.com/imag...amic/small.php
Last edited by anewday; 04-10-2008 at 12:25 PM..
|

04-10-2008, 12:15 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,583
|
|
|
Does it have anything to do with that cPanel restart lshttpd frequently? Do you have php opcode cache installed?
Please try the latest 3.3.10 release package.
I may be able to check your server when I get a chance.
|

04-10-2008, 12:33 PM
|
|
Senior Member
|
|
Join Date: Nov 2007
Location: New York
Posts: 723
|
|

every time when iowait is high, I see lsphp4 at the top of the process list according to the top command.
user % is not that high now but when load hits 2-3, the user % is at least 12%
Last edited by anewday; 04-10-2008 at 01:17 PM..
|

04-12-2008, 09:57 AM
|
|
Senior Member
|
|
Join Date: Nov 2007
Location: New York
Posts: 723
|
|
Happening again:
Code:
top - 11:54:33 up 237 days, 15:01, 1 user, load average: 6.06, 2.80, 1.65
Tasks: 133 total, 2 running, 131 sleeping, 0 stopped, 0 zombie
Cpu(s): 13.0% us, 4.9% sy, 0.0% ni, 24.3% id, 57.8% wa, 0.0% hi, 0.0% si
Mem: 3114144k total, 3096468k used, 17676k free, 30220k buffers
Swap: 2096440k total, 32348k used, 2064092k free, 2515412k cached
PID USER PR NI %CPU TIME+ %MEM VIRT RES SHR S COMMAND
8610 nobody 16 0 28 1:37.73 0.7 78908 20m 16m S lsphp4
10520 nobody 16 0 3 0:01.97 0.4 78788 10m 6884 S lsphp4
26474 nobody 15 0 2 15:04.07 0.4 14196 11m 3216 S lshttpd
28275 mysql 22 6 1 131:28.83 7.4 733m 224m 2700 S /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pi
Is it caused by mysql or lsphp4? 

Look at the big spike, most of the CPU usage is caused by lsphp4 running as user (priority 0) lsphp4 is likely the culprit.
Last edited by anewday; 04-12-2008 at 10:09 AM..
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 10:13 PM.
|
|