| [TEST] Benchmark httpd-event versus lighttpd [message #85353] |
Fri, 17 June 2011 04:31  |
|
---------------------------------------------------------------------
request tranfer rate test times
request = 1000 #/sec. KBytes/sec sec.
---------------------------------------------------------------------
Concurrent level = 1
- suphp + httpd-event ----- 1.63 10.28 613.782
- lighttpd (default config) ----- 5.99* 37.81* 167.079*
---------------------------------------------------------------------
Concurrent level = 5
- suphp + httpd-event ----- 6.49* 40.79* 154.201*
- lighttpd (default config) ----- 6.07 38.37 164.623
---------------------------------------------------------------------
Concurrent level = 10
- suphp + httpd-event ----- 43.04* 71.85* 23.235*
- lighttpd (default config) ----- 5.98 37.79 167.142
---------------------------------------------------------------------
Concurrent level = 5 -- MinSpareThreads = MaxSpareThreads = 5
- suphp + httpd-event (t5) ----- 5.44 33.89 183.792
---------------------------------------------------------------------
* better
Note:
1. Three times bench and select 'moderate' result
2. ApacheBench command 'ab -n 1000 -c X http://1.2.3.4/ where: X = 1, 5 or 10 concurrency
3. Use OpenVz VPS with 512mb/burst 1024mb memory
4. Test to wordpress page
5. Lighttpd use default config; httpd-event use:
<IfModule event.c>
StartServers 1
MaxClients 25
MinSpareThreads 10
MaxSpareThreads 10
ThreadsPerChild 25
MaxRequestsPerChild 0
ThreadStackSize 512
MaxMemFree 2
</IfModule>
[Updated on: Sat, 13 August 2011 11:51] Report message to a moderator
|
|
|
| Re: [TEST] Benchmark httpd-event versus lighttpd [message #85354 is a reply to message #85353] |
Fri, 17 June 2011 04:43   |
|
Conclusion:
httpd-prefork httpd-prefork httpd-event lighttpd
with mod_php with suphp with suphp -
-------------------------------------------------------------------------------
1.1. Less memory usage* no no no yes
1.2. High traffic ** no no yes no
1.3. Secure *** no yes yes no
-------------------------------------------------------------------------------
* Lighttpd can running on 256 MB or less system; httpd need 512 MB or more
** httpd-event (also httpd-worker) can handle 5-10 times then
lighttpd or httpd-prefork (httpd default)
*** Secure because suphp enable (very important for share-hosting business)
[Updated on: Fri, 17 June 2011 23:01] Report message to a moderator
|
|
|
| Re: [TEST] Benchmark httpd-event versus lighttpd [message #86405 is a reply to message #85353] |
Wed, 06 July 2011 08:13   |
Spacedust  Messages: 1233 Registered: October 2007 Location: Poland |
Senior Master |
|
|
Please test again using this lighttpd config:
## bind to port (default: 80)
server.port = 80
## change uid to <uid> (default: don't care)
server.username = "apache"
## change uid to <uid> (default: don't care)
server.groupname = "apache"
#### compress module
compress.cache-dir = "/tmp/lighttpd/cache/compress/"
compress.filetype = ("text/plain", "text/html")
userdir.path = "public_html"
alias.url = ( "/awstatsicons" => "/home/kloxo/httpd/awstats/wwwroot/icon/" )
alias.url += ( "/awstatscss" => "/home/kloxo/httpd/awstats/wwwroot/css/" )
include "local.lighttpd.conf"
include "conf/kloxo/kloxo.conf"
server.max-worker = 8 # this may break many things
server.network-backend = "linux-sendfile"
server.max-connections = 2000
server.stat-cache-engine = "simple"
server.max-fds = 32768 # set max open fd limit to 16k
server.max-keep-alive-idle = 0 #don't use keep-alive
server.max-read-idle = 30 # smaller read timeout
server.max-write-idle = 180 # smaller write timeout
server.max-request-size = 40960 #maximum 40M post content length
dir-listing.activate = "enable"
[Updated on: Fri, 08 July 2011 05:38] Report message to a moderator
|
|
|
| Re: [TEST] Benchmark httpd-event versus lighttpd [message #86502 is a reply to message #86405] |
Sat, 09 July 2011 03:36   |
|
Spacedust wrote on Wed, 06 July 2011 19:13Please test again using this lighttpd config:
## bind to port (default: 80)
server.port = 80
## change uid to <uid> (default: don't care)
server.username = "apache"
## change uid to <uid> (default: don't care)
server.groupname = "apache"
#### compress module
compress.cache-dir = "/tmp/lighttpd/cache/compress/"
compress.filetype = ("text/plain", "text/html")
userdir.path = "public_html"
alias.url = ( "/awstatsicons" => "/home/kloxo/httpd/awstats/wwwroot/icon/" )
alias.url += ( "/awstatscss" => "/home/kloxo/httpd/awstats/wwwroot/css/" )
include "local.lighttpd.conf"
include "conf/kloxo/kloxo.conf"
server.max-worker = 8 # this may break many things
server.network-backend = "linux-sendfile"
server.max-connections = 2000
server.stat-cache-engine = "simple"
server.max-fds = 32768 # set max open fd limit to 16k
server.max-keep-alive-idle = 0 #don't use keep-alive
server.max-read-idle = 30 # smaller read timeout
server.max-write-idle = 180 # smaller write timeout
server.max-request-size = 40960 #maximum 40M post content length
dir-listing.activate = "enable"
If you want lighttpd more speed, enable fastcgi to lighttpd. Lighttpd with 'reguler' cgi are less speed then apache mod_php.
Lighttpd are single-process and single-thread. This is different with apache mod_php (httpd-prefork; multi-processes) or httpd-worker/event (multi-threads; like nginx).
|
|
|
| Re: [TEST] Benchmark httpd-event versus lighttpd [message #86924 is a reply to message #85353] |
Sat, 16 July 2011 17:22   |
Spacedust  Messages: 1233 Registered: October 2007 Location: Poland |
Senior Master |
|
|
How to enable it for all users ?
Quote:lighttpd/1.4.28
Server-Features
RegEx Conditionals enabled
Network Engine
fd-Event-Handler linux-sysepoll
Config-File-Settings
Loaded Modules indexfile
rewrite
redirect
alias
access
auth
status
setenv
fastcgi
webdav
proxy
simple_vhost
evhost
userdir
cgi
compress
ssi
accesslog
dirlisting
staticfile
[Updated on: Sat, 16 July 2011 17:24] Report message to a moderator
|
|
|
|