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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Improving the responsiveness of the server

Reply
 
Thread Tools Display Modes
  #1  
Old 09-15-2012, 06:10 AM
Yogesh Sarkar Yogesh Sarkar is offline
Member
 
Join Date: May 2009
Posts: 42
Default Improving the responsiveness of the server

I have a vbulletin forum running vbseo as well, right now I am thinking of caching just the images, javascripts and css files. In such a scenario what will I need to do (running WHM server with Apache Config).

Last edited by webizen; 09-15-2012 at 07:09 PM.. Reason: Edit: move to this thread
Reply With Quote
  #2  
Old 09-15-2012, 08:20 AM
Yogesh Sarkar Yogesh Sarkar is offline
Member
 
Join Date: May 2009
Posts: 42
Default Improving the responsiveness of the server

I am looking to improve the responsiveness of my Litespeed server, it is running on an E-1230 V2 with 16GB of RAM and normal SATA drives and have memcache running also eaccelerator in disk cache made.

Server load is usually quite low and so is memory usage and I have been playing around with various settings but not having much luck, here is what the response to forum’s home page looks like.



These are the settings which I am using






In particular, looking to improve the serving of static files (hoping to cache them into RAM).

Last edited by Yogesh Sarkar; 09-15-2012 at 08:23 AM..
Reply With Quote
  #3  
Old 09-15-2012, 02:25 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
LSWS out of box settings (such as AIO 1M) should be already optimized for static file serving.

make sure no heavy process running (use 'top -c' to check).
Reply With Quote
  #4  
Old 09-15-2012, 02:42 PM
Yogesh Sarkar Yogesh Sarkar is offline
Member
 
Join Date: May 2009
Posts: 42
Which is why I am a little bit surprised, since the php files seems to take less time to start getting downloaded than the smaller files.

Have checked at various times during the day, even when the load is miniscule (we rarely hit more than 1.5 at peak on 4 core HT server in any case) and scenario is pretty much the same.
Reply With Quote
  #5  
Old 09-15-2012, 07:01 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
try disable compression.
Reply With Quote
  #6  
Old 09-15-2012, 11:08 PM
Yogesh Sarkar Yogesh Sarkar is offline
Member
 
Join Date: May 2009
Posts: 42
Had tried doing that and although starts the page render phase a little bit faster, but doesn't do anything for the state file serving speed.

My guess as of now is that since these images have long expire values, only new visitors are being served with them and hence these aren’t getting cached because somewhat fewer requests for them. Additionally, SATA drive might just also be hurting fast retrieval of smaller images.
Reply With Quote
  #7  
Old 09-15-2012, 11:19 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
the load time 2.991s is fast enough.
Quote:
hence these are not getting cached because somewhat fewer requests for them. Additionally, SATA drive might just also be hurting fast retrieval of smaller images.
so you think disk i/o may be the cause.
you can do more tests to confirm this : put all the static files in the page in /dev/shm, and add rewrite rule to fetch these files directly from /dev/shm. so this will eliminate disk i/o slowness issue.
Reply With Quote
  #8  
Old 09-15-2012, 11:22 PM
Yogesh Sarkar Yogesh Sarkar is offline
Member
 
Join Date: May 2009
Posts: 42
Actually I managed to shave off another .2 to .3 seconds by serving JS files through Google.

But the thing is, these are the times of US based test server. In case of India, due to latency and slower internet speeds, these delays become bigger. And while I can't really reduce the hoops in the connection or move the server to India due to insanely expensive bandwidth, I am trying to speed up things as much as I can on the serve side.

Will try and see if I can implement that /dev/shm trick, if not, I will bother you again with that. For now I am checking with my host on swapping out the SATA drive for an Intel SSD, maybe that would do the trick.

Last edited by Yogesh Sarkar; 09-15-2012 at 11:25 PM..
Reply With Quote
  #9  
Old 09-16-2012, 06:53 AM
eva2000 eva2000 is offline
Senior Member
 
Join Date: Dec 2004
Location: Brisbane, Australia
Posts: 142
disable facebook connect

serve all static files via cdn which is supported for vbseo ie. maxcdn
Reply With Quote
  #10  
Old 09-16-2012, 08:33 AM
Yogesh Sarkar Yogesh Sarkar is offline
Member
 
Join Date: May 2009
Posts: 42
Thanks George for the suggestions, but Facebook connect is actively use on our forum for both registration and sharing of posts.

And believe it or not, when I did the same test on vbseo forum to check the effectiveness of maxcdn, it actually showed similar results! Right now I am contemplating running lighttpd or varnish for static files, either on the same server or on our backup server in Europe. Of course if I can speed up things without making them more complicated, then that is always better for a lazy person like me .

So waiting first for WT's response on SSD, that 240GB 520 is now available for a mouth watering price.
Reply With Quote
Reply

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 06:24 AM.



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