Home > Unix > Async IO on lighttpd

Async IO on lighttpd

  • 2006-11-13 (Mon) 17:07
  • Unix
  • hatena button
  • hatena count
  • save this page del.icio.us

lighty’s lifeによると、次期lighttpdはaioを使って80%ほどスループットが向上したようである。

The idea is:
1. create a buffer in /dev/shm and mmap() it
2. start a async read() from the source file to the mmap() buffer
3. wait until the data is ready
4. use sendfile() to send the data from /dev/shm to the network socket
Important for the performance: the data is never copied into user space. We only move it from one side of the kernel to the other side.

賢い。確かに早くなるのは分かるんだけど、エラー処理の部分が気になるなぁ。コード見てみる。しかしまずlibaio.hというのが何処にあるか分からんぞ…。このライブラリはどこから来ておるのだ…。

Similar Posts:

Comments:0

Comment Form
Remember personal info

Trackbacks:0

Trackback URL for this entry
http://kzk9.net/blog/2006/11/async_io_on_lighttpd.html/trackback
Listed below are links to weblogs that reference
Async IO on lighttpd from moratorium

Home > Unix > Async IO on lighttpd

お薦め本
広告
Archives
Categories

Return to page top