RE: web server optimization question
Status: Alpha
Brought to you by:
coroberti
|
From: jari p. <jar...@ho...> - 2007-09-07 03:12:31
|
Robert,
I did some experimenting and can share the results so far:
=20
- with ligthttpd and minimal server tuning, I got around 3300 CAPS with 100=
0 virtual clients.
(load-curl 0.41 re-compiled with optimization) compared to 1200 with A=
pache.
=20
Then the good news:
My client in this test was is dual-core P4 2.8Ghz, 1GB RAM, Fedora 5=
=20
and with -t 2 option there was almost linear scaling leading about 600=
0 CAPS!
Very impressive, thanks for pointing this out.
=20
- I then switched to nginx, and was able to reach 8000 CAPS with -t=
2 and 1000 virtual clients.
(no change in client configuration )
But there is also a change in server behavior, lighttpd does NOT use pers=
istent connections
and closes each TCP connection (TCP FIN server ->client ).
This is actually the kind of behavior, I wanted to see:
NO persistence, thus creating load on DUT that needs to track TCP sess=
ion creation and closing.
=20
Nginx with default settings has persistence,
(and not sure if there is directive to make it not to do so),
so this seems to explain the higher CAPS number.
I also experimented a little with the number of virtual clients,=20
but I got about the same results with 256 clients,
and performance started to degrade around 1500 clients.
=20
- Finally, I tried configuration where client closing the connectio=
n, but with this=20
I got much lower CAPS with both lighttpd and nginx.
-jari=20
_________________________________________________________________
Connect to the next generation of MSN Messenger=A0
http://imagine-msn.com/messenger/launch80/default.aspx?locale=3Den-us&sourc=
e=3Dwlmailtagline=
|