About the license and CPUs

webizen

Well-Known Member
#43
how can i find the I/O wait ??
run 'top' from command line. i/o wait is at the top of your screen as follows (in bold):
%
top - 19:22:00 up 15 days, 3:18, 7 users, load average: 2.74, 2.45, 2.78
Tasks: 278 total, 1 running, 277 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.5%us, 21.2%sy, 0.0%ni, 73.4%id, 4.9%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 8171948k total, 8129524k used, 42424k free, 29964k buffers
Swap: 0k total, 0k used, 0k free, 7093344k cached
...
...
 
#44
CPU 64 Core Over Load

Hello All

I bought a server with 64 Core AMD CPU
Processor #1

Vendor
AuthenticAMD

Name
AMD Opteron(TM) Processor 6274

Speed
2200.000 MHz

Cache
2048 KB

Processor #2

Vendor
AuthenticAMD

Name
AMD Opteron(TM) Processor 6274

Speed
1400.000 MHz

Cache
2048 KB

Processor #3

Vendor
AuthenticAMD

Name
AMD Opteron(TM) Processor 6274

Speed
1400.000 MHz

Cache
2048 KB

Processor #4

Vendor
AuthenticAMD

Name
AMD Opteron(TM) Processor 6274

Speed
2200.000 MHz

Cache
2048 KB

to Processor #64 ......

[~]# cat /proc/cpuinfo | grep processor | wc -l
64

This is my linux Version :
[~]# cat /proc/version
Linux version 2.6.18-274.18.1.el5 (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)) #1 SMP Thu Feb 9 12:45:44 EST 2012

Here is our Server Load Average :
[~]# uptime
15:54:23 up 1 day, 21:29, 3 users, load average: 101.81, 91.80, 94.08

Here is used and available RAM memory and swap space usage :
[~]# free -m
total used free shared buffers cached
Mem: 48300 18852 29447 0 651 15426
-/+ buffers/cache: 2773 45526
Swap: 4094 0 4094

Here is My Server Disk USAGE :
[~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 941813876 66646520 826554268 8% /
/dev/sda1 295561 23128 257173 9% /boot
tmpfs 24729644 3640 24726004 1% /dev/shm
/dev/sdb1 117161008 9405856 107755152 9% /db
/usr/tmpDSK 5160576 585412 4313020 12% /tmp


current status of virtual memory, CPU usage, I/O usage:
[~]# vmstat
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu----- -
r b swpd free buff cache si so bi bo in cs us sy id wa st
0 0 0 30174396 667356 15795252 0 0 1 155 3 3 24 8 65 2 0


LiteSpeed Version :
Current Version: 4.0.20

LiteSpeed Server Process :
Server Process Edit
Server Name

$HOSTNAME
Running As

user(nobody) : group(nobody)
Priority

-19
chroot Path

/
Enable chroot

No
Enable LVE

No
Memory I/O Buffer

4024M
Swapping Directory

/dev/shm/lsws
Auto Restart

Yes
Auto Fix 503 Error

Yes
Graceful Restart Timeout (secs)
Not Set




Attention to this details do you think 1 LiteSpeed license is Enough for our server or we should Order More License ?

With ordering more Licenses our problem will be fix or not ?

This OverLoad is Due LiteSpeed or Another THing?


Thanks for your HELP
 

mistwang

LiteSpeed Staff
#45
There is a known kernel bottle neck trigger by LiteSpeed when CPU/core count is very high. We are working on a solution now.
In the mean time, you should turn off "AIO" under server->"tuning" tab from LSWS console see if it help or not.
 
#46
Hello

Thank you for your reply

we are using 4.0.20 version that not support AIO . This is a Bug from Litespeed that should be fixed . do you think when you could fix this issue?

Thank you
 

mistwang

LiteSpeed Staff
#47
If AIO is not involved, it could be something else.

Please contact bug@litespeed... if you would like to have our staff to take a look at your server.
 
#48
I had a question regarding this.

My CPU is a Intel Core i3-2100 Processor, it only has 2 cores but 4 threads.
If i purchase a 1 CPU license will Litespeed use 2 threads or as far as Litespeed is concerned i have 4 cores ?
 
#50
Sir I Have Total 8 processor

Sir I Have Total 8 proceesors in my dedicated server with centos 5.8 install and 8 gb ram

Vendor
GenuineIntel

Name
Intel(R) Xeon(R) CPU X3440 @ 2.53GHz

Speed
1197.000 MHz

Cache
8192 KB

and i have total 12 sites in my dedicated server 1 site is having daily 80000 visitors and other site no.2 is having 40000 visitor and other 10 sites is having 1000 user per day means 1x10=10000 users total 1,20,000+10,000= 1,30,000 total visitors im using litespeed 2 cpu license but not getting good spped as much i need so according to you howmay cpu license of litespeed is better for me.
 

webizen

Well-Known Member
#51
run 'top -c' etc to figure out what consume the most server resources and what is the bottleneck. if lsws takes most cpu cycles, you may try with a higher license.
 
#52
sir top process is using by mysql and lsphp5

sir top process is using by mysql and lsphp5 so can you guide me what will i do now if 10 % is using by mysql then 4 % is using by lsphp5
 

semprot

Well-Known Member
#59
do 'top -c' and see which processes consume most cpu cycles. if it is 'litespeed', then upgrade makes sense.
Its on top 15-20 processes, is it considered as "consume most cpu cycles"?

Code:
root@***** [~]# top -c
top - 12:57:52 up 20 days, 22:37,  1 user,  load average: 4.37, 4.15, 4.05
Tasks: 207 total,   3 running, 200 sleeping,   4 stopped,   0 zombie
Cpu(s): 40.8%us,  2.3%sy,  0.0%ni, 54.5%id,  0.4%wa,  0.0%hi,  2.0%si,  0.0%st
Mem:  12289752k total,  6929920k used,  5359832k free,  1147196k buffers
Swap:  2096472k total,        0k used,  2096472k free,  3477120k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
30292 nobody    15   0  417m  31m  18m R 56.0  0.3   0:23.85 lsphp5:/home/*****/public_html/showthread.php
30359 nobody    16   0  414m  26m  16m S 51.2  0.2   0:12.73 lsphp5
30378 nobody    16   0  414m  27m  16m S 49.8  0.2   0:06.02 lsphp5
30379 nobody    16   0  413m  21m  13m S 48.8  0.2   0:05.42 lsphp5
30216 nobody    16   0  412m  26m  18m S 43.1  0.2   0:47.64 lsphp5
30317 nobody    16   0  412m  24m  16m S 34.3  0.2   0:21.03 lsphp5
30393 nobody    16   0  411m  19m  10m S 19.1  0.2   0:01.00 lsphp5
31455 mysql     15   0 6850m 1.3g 4996 S 17.4 11.2 226:55.94 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --log-error=/var/lib/mysql/dx
30226 nobody    16   0  413m  28m  19m S 13.1  0.2   0:48.98 lsphp5
30383 nobody    15   0  416m  23m  13m S  8.8  0.2   0:03.10 lsphp5:/home/*****/public_html/showthread.php
27191 nobody    15   0 84324  26m  776 S  8.1  0.2 112:53.46 /usr/local/bin/memcached -u root -m 32 -p 11211 -u nobody -l 127.0.0.1
28710 nobody     0 -19 74268  32m  18m S  6.0  0.3   0:57.34 [B]litespeed[/B] (lshttpd)
30330 root      15   0 12860 1208  832 R  0.5  0.0   0:00.08 top -c
30387 nobody    15   0  409m  11m 6244 S  0.5  0.1   0:00.09 lsphp5
28711 nobody     0 -19 93800  50m  41m S  0.2  0.4   0:06.69 [B]litespeed[/B] (lshttpd)
    1 root      15   0 10364  692  580 S  0.0  0.0   0:03.00 init [3]
    2 root      RT  -5     0    0    0 S  0.0  0.0   0:00.28 [migration/0]
    3 root      34  19     0    0    0 S  0.0  0.0   0:07.92 [ksoftirqd/0]
 
Top