LxCenter HyperVM & Kloxo Support

Forum



Members   Search      Help    Register    Login    Home
Home » Development Forums » Kloxo Development » [TEST] Benchmark httpd-event versus lighttpd
[TEST] Benchmark httpd-event versus lighttpd [message #85353] Fri, 17 June 2011 04:31 Go to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5678
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

---------------------------------------------------------------------
                                  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>


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png

[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 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5678
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

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)


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png

[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 Go to previous messageGo to next message
Spacedust is currently offline Spacedust  Poland
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 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5678
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

Spacedust wrote on Wed, 06 July 2011 19:13
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"


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).


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [TEST] Benchmark httpd-event versus lighttpd [message #86924 is a reply to message #85353] Sat, 16 July 2011 17:22 Go to previous messageGo to next message
Spacedust is currently offline Spacedust  Poland
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

Re: [TEST] Benchmark httpd-event versus lighttpd [message #86975 is a reply to message #86924] Sun, 17 July 2011 18:45 Go to previous message
Spacedust is currently offline Spacedust  Poland
Messages: 1233
Registered: October 2007
Location: Poland
Senior Master
OK. I know enabled and testing now.
do lot nu sieu mong ao lot nam cao cap chau tam cho be ban buon vay cong so chup anh da ngoai

[Updated on: Fri, 03 May 2013 14:47]

Report message to a moderator

Previous Topic:Autoresponder in HTML
Next Topic:[TEST] mod_ruid2 on Kloxo
Goto Forum:
  


Current Time: Sat May 25 23:10:04 EDT 2013

Total time taken to generate the page: 0.01103 seconds
.:: Contact :: Home :: Privacy ::.

Click here to lend your support to: LxCenter and make a donation at www.pledgie.com !

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software