Fly Light : lighttpd

Security, speed, compliance, and flexibility — all of these describe lighttpd (pron. lighty) which is rapidly redefining efficiency of a webserver; as it is designed and optimized for high performance environments. With a small memory footprint compared to other web-servers, effective management of the cpu-load, and advanced feature set (FastCGI, SCGI, Auth, Output-Compression, URL-Rewriting and many more) lighttpd is the perfect solution for every server that is suffering load problems. And best of all it’s Open Source licensed under the revised BSD license.

lighttpd 的最新版是1.4.18,正在逐渐蚕食Apache的市场。作为YouTubewikipediameebo的服务器程序,lighttppd使用很少的CPU资源就达到了很高的性能。据称,在某些应用中,甚至达到了数倍的效率。

根据lighttpd提供的传输量为100MBytes的性能分析,得到以下结论:

在100kByte的文件传输中,lighttpd仅比Apache高出一点点:

lighttpd MByte/s
writev 82.20
linux-sendfile 70.27
gthread-aio 75.39
posic-aio 73.10
Apache 2.2.4 70.28
LiteSpeed 3.0rc2 70.20

但是在10MByte的文件传输中,lighttpd就比Apache高出不少了:

lighttpd MByte/s
writev 82.20
linux-sendfile 53.95
gthread-aio 83.02
posic-aio 82.31
Apache 2.2.4 50.92
LiteSpeed 3.0rc2 55.58

当然,如果仅仅处理小规模的数据查询,还是传统一点的Apache比较熟悉。然而无疑的,作为服务器程序,lighttpd为我们提供了一条扩展服务性能的新道路。

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: