Project

General

Profile

[Solved] lighty with gthread-sendfile

Added by sraghavan almost 15 years ago

While going through lighty code (lighttpd-1.5.0.r2294.modcache) I noticed the option of choosing 'gthread-sendfile' as a backend. I have also been reading through some of the perf testing related articles in this site and I was wondering if there are any results available for this particular backend ('gthread-sendfile'). The articles that I saw give out numbers for 'gthread-aio' and not for 'gthread-sendfile'. Would appreciate if you can give me some pointers.

Thanks,
Sudarshan


Replies (3)

RE: lighty with gthread-sendfile - Added by sraghavan almost 15 years ago

I ran a few performance tests against lighttpd with network backend write set to 'gthread-sendfile' and 'gthread-aio' and got the following numbers. I collected the latency and cpu usage numbers. The lighttpd version is 1.5.0.r2294 with mod_cache enabled.

Test profiles
------------
300 req/sec with average object size being 64K.

gthread-aio
------------
1) Latency: 57 msec avg
2) CPU Usage: 20% - 30%. Avg = 24%

gthread-sendfile
----------------
1) Latency: 10 msec avg
2) CPU Usage: 20% - 30%. Avg = 29%

There is very little information in your website about 'gthread-sendfile'. It seems to be performing better in this test. I agree this is not enough to suggest one way or the other, but it is an useful indicator to explore the possibilities with 'gthread-sendfile'. Can someone please take a look and respond.

Thanks,
Sudarshan

RE: lighty with gthread-sendfile - Added by sraghavan almost 15 years ago

The system we ran the test on has 32G of RAM and runs on a Xeon dual quad-core. It runs linux kernel 2.6.24-19. Please let me know if you need more information.

Thanks,
Sudarshan

RE: lighty with gthread-sendfile - Added by gstrauss over 3 years ago

The lighttpd 1.5.x branch has been abandoned.

lighttpd 1.4.x is actively maintained and is faster than the 1.5.x branch.

    (1-3/3)