LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Litespeed + cPanel + Cloudlinux

Reply
 
Thread Tools Display Modes
  #21  
Old 04-10-2010, 04:35 AM
tina tina is offline
Member
 
Join Date: Feb 2010
Posts: 43
That is good news indeed.
Reply With Quote
  #22  
Old 04-11-2010, 04:04 AM
iseletsk iseletsk is offline
Member
 
Join Date: Mar 2010
Posts: 14
Quote:
Originally Posted by DataOne View Post
Looks like is working now !

Is easy to get the top ten cpu eaters:

# cat /proc/lve/list|sort -r -n -k5|head -10
1485 3 100 100 1356112822722
824 2 100 100 230866736639
526 3 100 100 150523405592
1231 2 100 100 90540145514
927 2 100 100 89125989547
719 2 100 100 86946923203
633 3 100 100 69499024119
1218 2 100 100 24445937978
1411 2 100 100 19176211971
872 2 100 100 18148676133

The big number is cpu usage but I don't know in what units is that, I guess is not cpu time in seconds
The big numbers are jiffies (Within the Linux 2.6 operating system kernel, since release 2.6.13, on the Intel i386 platform a jiffy is by default 4 ms, or 1/250 of a second. The jiffy values for other Linux versions and platforms have typically varied between about 1 ms and 10 ms.) spent by CPU on all the processes within LVE.

lveps -d would give you usage in percentage on per LVE bases.
Reply With Quote
  #23  
Old 04-13-2010, 12:24 PM
optize optize is offline
Senior Member
 
Join Date: Feb 2010
Posts: 121
I'm not convinced this is working correctly.

Perhaps this is just the way CL works, since I haven't used it on Apache, it's hard to tell.

Should it be rate limiting these processes so they don't appear over the x value of CPU? My value is set at 25%, yet top still shows people at 60%

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
26834 rixxopco 16 0 129m 24m 6508 S 60.5 0.3 0:02.17 lsphp5
Reply With Quote
  #24  
Old 04-13-2010, 12:27 PM
iseletsk iseletsk is offline
Member
 
Join Date: Mar 2010
Posts: 14
Quote:
Originally Posted by optize View Post
I'm not convinced this is working correctly.

Perhaps this is just the way CL works, since I haven't used it on Apache, it's hard to tell.

Should it be rate limiting these processes so they don't appear over the x value of CPU? My value is set at 25%, yet top still shows people at 60%

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
26834 rixxopco 16 0 129m 24m 6508 S 60.5 0.3 0:02.17 lsphp5
We are not limiting individual processes, but all of them together, for a site.
Could you show me what lveps -d shows?
Also, what are you settings in /etc/container/ve.cfg and how many cores does your server have?
Reply With Quote
  #25  
Old 04-13-2010, 12:31 PM
optize optize is offline
Senior Member
 
Join Date: Feb 2010
Posts: 121
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
27330 elvisman 15 0 123m 24m 6048 S 36.9 0.3 0:00.19 lsphp5

root@cp08 [~]# lveps -d | grep elvis
652 1 1 1elvismanelvisman 0% 18556 N/A
root@cp08 [~]#

top says 36%, lveps says 0% ?
Reply With Quote
  #26  
Old 04-13-2010, 12:52 PM
iseletsk iseletsk is offline
Member
 
Join Date: Mar 2010
Posts: 14
Quote:
Originally Posted by optize View Post
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
27330 elvisman 15 0 123m 24m 6048 S 36.9 0.3 0:00.19 lsphp5

root@cp08 [~]# lveps -d | grep elvis
652 1 1 1elvismanelvisman 0% 18556 N/A
root@cp08 [~]#

top says 36%, lveps says 0% ?
What does this script do? How are you testing it? Are you hitting some PHP script all the time?
TOP shows CPU usage since process starts
lveps shows the usage during the last few seconds
Reply With Quote
  #27  
Old 04-13-2010, 12:57 PM
optize optize is offline
Senior Member
 
Join Date: Feb 2010
Posts: 121
Quote:
Originally Posted by iseletsk View Post
What does this script do? How are you testing it? Are you hitting some PHP script all the time?
TOP shows CPU usage since process starts
lveps shows the usage during the last few seconds
This is a live web server, just going off of what's being served.
Reply With Quote
  #28  
Old 04-13-2010, 01:08 PM
iseletsk iseletsk is offline
Member
 
Join Date: Mar 2010
Posts: 14
Quote:
Originally Posted by optize View Post
This is a live web server, just going off of what's being served.
It is possible that the site is not serving dynamic content right now -- and that is why you see 0 for cpu usage
if you run lveps -- it will show you the number of jiffies (cpu ticks) spent by lve to serve that site.
Also, could you do lveps -p
and see if that process (isphp5) is in LVE? It is possible that only its children are.
Reply With Quote
  #29  
Old 04-13-2010, 01:10 PM
optize optize is offline
Senior Member
 
Join Date: Feb 2010
Posts: 121
Emailed you the info, as it was too large to post.
Reply With Quote
  #30  
Old 04-18-2010, 09:37 AM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
Interesting, I might give it a shot on a brand new server later.
Reply With Quote
Reply

Tags
cloudlinux, cpanel

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:54 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.