RE: web server optimization question
Status: Alpha
Brought to you by:
coroberti
|
From: jari p. <jar...@ho...> - 2007-09-07 03:16:48
|
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
and with -t 2 option there was almost linear scaling leading about 6000 CA=
PS!
Very impressive, thanks for pointing this out.
=20
- I then switched to nginx, and now got 8000 CAPS with -t 2 and 1000 v=
irtual clients.
(no change in client configuration )
But there was 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 session =
creation and closing.
=20
Nginx with default settings has persistence, (and not sure if there is di=
rective 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, but I got =
about the same results with 256 clients,
and performance started to degrade around 1500 clients.
- Finally, I tried configuration where client closes the connection,=20
but with this I got much lower CAPS with both lighttpd and nginx.
_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=3Dwindows+vista&mkt=3Den-US&form=3DQBR=
E=
|