Home > Archives > 2006-11

2006-11

Async IO on lighttpd

  • 2006-11-13 (Mon)
  • 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というのが何処にあるか分からんぞ…。このライブラリはどこから来ておるのだ…。

CPU実験(15)


動いた!まえださんにPS3の発売日に間に合わせる!と宣言してたら同じ日になってしまった。丁度1ヶ月ー。その後nyaasanを加えてレイトレ動作飲み。深夜辺りの記憶が無い。色々ばぐっていたような気がする。ご迷惑をかけた皆様、ごめんなさい(笑)
参照:
- naoki
- yama
- ush
- nuはまだ満足していないらしい(笑)

CPU実験(14)


グロ画像ゲット。
追記:

おお。約780秒。
参考:
yamaさん, ushさん

CPU実験(13)

USB制御回路にバグが有る。
sldファイルを正常に送れない模様。
黒画像は出たけど、これはちょっとはまりそう。

CPU実験(12)

今日中に動くかと思われたが、制御系のバグがまだ有る模様。
あと2,3個バグを取れば絶対動くはず。
あと fadd を1 clockで返せるかもしれないアイデアを思いついたので、レイトレが動いたら試してみよう。

Home > Archives > 2006-11

お薦め本
広告
Archives
Categories

Return to page top