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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Speed problem downloading large file

Reply
 
Thread Tools Display Modes
  #11  
Old 02-21-2006, 08:43 PM
user3 user3 is offline
New Member
 
Join Date: Feb 2006
Posts: 9
Default The result using "-n" is not change.

Thanks for all your answer.

Surely, I have tested using other parameters already.

below result is using "-n" parameter.

## apache 2.2.0

./ab -n 100 -c 1000 http://test.server:80/index.html.1

Server Software: Apache/2.2.0
Server Hostname: test.server
Server Port: 80

Document Path: /index.html.1
Document Length: 300260 bytes

Concurrency Level: 1000
Time taken for tests: 0.951 seconds
Complete requests: 100
Failed requests: 0
Broken pipe errors: 0
Total transferred: 36151432 bytes
HTML transferred: 36121061 bytes
Requests per second: 105.15 [#/sec] (mean)
Time per request: 9510.00 [ms] (mean)
Time per request: 9.51 [ms] (mean, across all concurrent requests)
Transfer rate: 38014.12 [Kbytes/sec] received


## listespeed

./ab -n 100 -c 1000 http://test.server:80/index.html.1

Server Software: LiteSpeed
Server Hostname: test.server
Server Port: 8080

Document Path: /index.html.1
Document Length: 300260 bytes

Concurrency Level: 1000
Time taken for tests: 2.629 seconds
Complete requests: 100
Failed requests: 0
Broken pipe errors: 0
Total transferred: 39494972 bytes
HTML transferred: 39447612 bytes
Requests per second: 38.04 [#/sec] (mean)
Time per request: 26290.00 [ms] (mean)
Time per request: 26.29 [ms] (mean, across all concurrent requests)
Transfer rate: 15022.81 [Kbytes/sec] received


Local and remote result was same.


Thanks for your concerns...
Reply With Quote
  #12  
Old 02-21-2006, 08:46 PM
Xorlev Xorlev is offline
Senior Member
 
Join Date: Nov 2005
Posts: 58
"Your download speed for above packages is throttled to 160KB/s regardless of the number of connections."

I see now. Very neat. Sorry I misunderstood.
Reply With Quote
  #13  
Old 02-21-2006, 08:58 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
You have set the concurrency level too high, should not over 300 for standard edition. And the concurrency level should always be lower than number of requests.

And you cn increase the "Max MMAP File Size" under the tuning tab higher than the size of the test file in order to get the best performance.
Reply With Quote
  #14  
Old 02-22-2006, 11:09 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Spent a little time to investigate this issue.

Found that it is true Apache can serve large static file a little faster (upto about 30%) than properly configured lsws std.

The reason is Apache uses sendfile() for static file, lsws std just use plain read() or MMAP() + writev(), which is not as efficient as sendfile(). That's the main factor for serving large static file.

For most user it is not a big concern unless you have a Gb connection serving pure static large files. However, our Enterprise edition is highly recommended for this kind of application, it definitely beats Apache on both pure serving speed and scalability.
Reply With Quote
  #15  
Old 02-22-2006, 02:04 PM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
but in the professional version one can enable sendfile too.
wouldn't that help in that case already?
Reply With Quote
  #16  
Old 02-22-2006, 03:28 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
The sendfile setting within professional does not take effect. If you click on help witin the admin gui, it will detail that sendfile settings is only applied for enterprise licenses.

Please note this "bottleneck" witin std/pro version is only applicable in a bi-directional GigE setup where both the client and server on a GigE connection which is not often the case if at all, in most real world siutations.

On a 100mb/s pipe, you will hit the 9.9MB/s pipe limit before hitting any i/o limit and apache has no advantage what so ever. The same goes to a real-world scenario where you have a much less than GigE interconnect to the internet and your web clients are on a < 10mb/s pipe to the inernet.
Reply With Quote
  #17  
Old 03-25-2006, 09:00 AM
madmage madmage is offline
New Member
 
Join Date: Mar 2006
Posts: 5
I as well have this issue. If the sendfile issue is what is causing this to occur, it is a shame. I'll be forced to switch back to apache, since I just can't afford the price of the enterprise server and the pro does not enable sendfile either.
Reply With Quote
  #18  
Old 03-28-2006, 09:45 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
sendfile support will be turned on in professional edition in 2.1.13.
Reply With Quote
  #19  
Old 07-06-2006, 08:01 AM
madmage madmage is offline
New Member
 
Join Date: Mar 2006
Posts: 5
im still confused how you can claim that the std edition is FASTER than apache when it hands-down is not.

I had to switch back to apache for our http traffic, but i left lsws in place for our ssl traffic and the difference is blatant.
if i wget a 521k file, im getting average thruput here of 314.77K/s with apache. using lsws for the same exact file it goes at 12.07K/s.

how exactly is that faster than apache?
Reply With Quote
  #20  
Old 07-06-2006, 09:14 AM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
With or without sendfile() support in the Standard version of LSWS, your result appears to be out of wack. 12KB/s vs 314KB/s? Not saying your result is wrong, but there appears to be something broken with your configuration.

With that said, Standard Edition of LiteSpeed is not optimized for raw static output due to the advantage of lack of sendfile() support that is available in Enterprise edition. Again, sendfile()'s advantage is not 30X so we need more info to replicate your test result.

Despite all that, the LiteSpeed Standard Edition IS more scalable than Apache given load. Try to compare LiteSpeed, any edition, vs Apache under 200+ requests per second (mix dynamic content and static), and the difference in speed and latency is without questioned.

The bigger your website, server load, the greater the advantage is LiteSpeed vs Apache.

If you can provide us with more details of your configuration, we can try to see what went wrong with you. Due to possible sensitive info in your configuration, you can email the LiteSpeed xml config files plus Apache config file to bug@litespeedtech.com. Please note the Apache + LiteSpeed version and the size of the the static file from your test.

Last edited by xing; 07-06-2006 at 09:23 AM..
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Uploading files / tmp file creation BuhBompus PHP 10 12-07-2006 08:49 AM
Problem installing LiteSpeed 2.2.1 Standard on UNIX perezsy Install/Configuration 17 09-22-2006 09:53 AM
!n00b is crying 4 speed // installaton problem glueJoe Install/Configuration 4 07-31-2006 01:34 PM
Php file uploads result in "connection reset" error bazza PHP 7 06-09-2006 12:25 PM
Limit file transfer speed for certain users Robbban Install/Configuration 5 10-18-2005 07:55 AM


All times are GMT -7. The time now is 06:58 AM.



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