|
|

07-29-2011, 03:20 AM
|
|
Senior Member
|
|
Join Date: Nov 2010
Posts: 57
|
|
Optimization request
Hi,
I'm running a large VB3 forum (possibly migrating to VB4) and looking to tweak Litespeed as much as possible to reduce load. Can you please take a look over my configurations and offer as much advice as possible. I'm using XCACHE for opcode and Memcache(d) for the forum DB.
Quote:
top - 11:14:42 up 3 days, 13:00, 1 user, load average: 6.26, 7.13, 6.92
Tasks: 142 total, 5 running, 137 sleeping, 0 stopped, 0 zombie
Cpu(s): 59.2%us, 3.5%sy, 0.0%ni, 36.6%id, 0.0%wa, 0.0%hi, 0.7%si, 0.0%st
Mem: 8181048k total, 7147468k used, 1033580k free, 205656k buffers
Swap: 16771576k total, 168k used, 16771408k free, 5431996k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
20069 website 16 0 267m 106m 75m R 64.2 1.3 1:29.07 lsphp5
20059 website 15 0 269m 106m 73m R 39.3 1.3 1:32.17 lsphp5
29025 mysql 10 -5 835m 639m 4084 S 30.9 8.0 345:43.36 mysqld
20060 website 15 0 270m 108m 74m R 28.3 1.4 1:23.39 lsphp5
20279 website 16 0 271m 71m 36m S 27.3 0.9 0:19.56 lsphp5
20067 website 16 0 271m 112m 77m S 22.3 1.4 1:25.14 lsphp5
20338 website 16 0 266m 57m 24m R 19.0 0.7 0:04.68 lsphp5
20062 website 15 0 281m 117m 72m S 17.6 1.5 1:19.76 lsphp5
4016 nobody 15 0 98000 30m 780 S 2.0 0.4 94:43.51 memcached
|
Litespeed version: 4.1.2
PHP Version: 5.1.17
Memory I/O Buffer ; 60m
Max connections; 2000
Connection timeout; 60
Max Keep-Alive Requests; 1000
smart keepalive; yes
Keep-Alive Timeout (secs); 7
Lsphp5
Max connections; 100
PHP_LSAPI_MAX_REQUESTS=2000
PHP_LSAPI_CHILDREN=100
Initial request timeout; 60
connection keepalive timeout; 30
max idle time; 10
priority; 0
Memory Soft Limit (bytes); 640m;
Memory Hard Limit (bytes); 720m
Process Soft Limit; 800m
Process Hard Limit; 1000m
Thanks guys
|

07-29-2011, 03:28 AM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,218
|
|
|
|

07-29-2011, 03:29 AM
|
|
Senior Member
|
|
Join Date: Nov 2010
Posts: 57
|
|
|
And there is no conflicts with Xcache and Memcache correct?
|

07-29-2011, 03:32 AM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,218
|
|
|
right. continue to use your XCache and Memcache. they are caching different objects.
|

07-29-2011, 04:14 AM
|
|
Senior Member
|
|
Join Date: Nov 2010
Posts: 57
|
|
|
Having trouble;
*path /tmp/diskcache is not readable
Regards.
/edit
chmod -c 0775 diskcache
fixed.
/edit2
my virtual hosts are blank?
Last edited by MentaL; 07-29-2011 at 08:17 AM..
|

07-29-2011, 09:45 AM
|
|
LiteSpeed Staff
|
|
Join Date: Oct 2010
Posts: 2,337
|
|
http://www.litespeedtech.com/support...itespeed_cache
3. For imported Apache vhost: Cache can be turned on/off with “CacheEnable” , “CacheDisable” directives in Apache config file. Nothing needs to be done for the cache policy. It will assume the same default settings at LSWS Server level. Rewrite rules can be placed in httpd.conf or in-directory .htaccess file as shown in step 5 below. Note: Apache mod_cache directives CacheIgnoreCacheControl, CacheMaxExpire also can be used in the Apache config file as well as .htaccess to fine tune cache policy.
|

07-30-2011, 07:12 AM
|
|
Senior Member
|
|
Join Date: Jun 2010
Posts: 100
|
|
Quote:
Originally Posted by MentaL
And there is no conflicts with Xcache and Memcache correct?
|
However Memcached's useful for PHP clustered enviorments. Ever seen a forum run off over 5 dual/quad core PHP (Only) systems?
Grab XCache, update your PHP and get to tuning. Paying for a webserver doesn't mean performance.
If you need it done quick and reliable feel free to hit me up. I work with forums and blogs doing dozens of php req/sec, if you let me know your sites work load like if theres lots of guests- as NiteWave said enable LSCache properly.
If theres lots of members online, well might be your best bet to hit me up or pay LiteSpeed for some support 
You can send me details of traffic stats and the domain and I can give you a quote of what all I can do. Already appears your PHP's eating wayy too much cpu for vb3. We specialize in mostly vb/ipb/wordpress high performance tuning and hosting for over 5 years, so yeah I know what I'm talking about.
http://uploadpla.net/files/6740_7bp6...40.14%20AM.png
Theres a screenie I took of our huge shared box with over 16gB of SQL databases, mixed forum types. The 26/10% cpu used are old messed up WordPress install's that'll be fixed by the customers soon. Theres a lot you can do when it comes to PHP tuning.
Good luck m8
|

07-30-2011, 08:38 AM
|
|
Senior Member
|
|
Join Date: Nov 2010
Posts: 57
|
|
|
Well the DB has millions of posts, and raw text is around 6gb in size with attachments its allot more. Online users is over 2000. I'll look at my options shortly. I'll more than likely reconfigure allot.
Regards.
|

07-30-2011, 08:43 AM
|
|
Senior Member
|
|
Join Date: Jun 2010
Posts: 100
|
|
Quote:
Originally Posted by MentaL
Well the DB has millions of posts, and raw text is around 6gb in size with attachments its allot more. Online users is over 2000. I'll look at my options shortly. I'll more than likely reconfigure allot.
Regards.
|
LSCache won't much at all help if it's members online is like that.
You'll need atleast 8 or so cores and properly tuned php. If php is using 2% cpu or so avg for your site, that leaves almost 400 php processes possible. If your php eating 30-50%, lets say 50% on avg maybe able to do 15 or so processes. This is considering if MySQL is on separate system, or you had 8 cores.
for a ipb forum which php runs alil slower cpu wise when tuned right then vb3 back then, for 1,500-2,500 or so users we had to setup a php cluster for client. There was about 3-4 php servers to accomidate that load, this was a few years ago though you can prob get by with 1 spare php server, set the main one for the uploads, rsync the data, profit 
However by your connection/in processing graph I see a major lack of tuning for your site, prob lacking on cores for php to scale on too 
|

07-30-2011, 09:20 AM
|
|
Senior Member
|
|
Join Date: Nov 2010
Posts: 57
|
|
|
Running on 4 cores can upgrade to 8 if required (sponsored). VBSeo seems to like to eat resources also.
|
| 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 08:50 AM.
|
|