Home > Unix Archive

Unix Archive

valgrindのページ

  • 2007-01-23 (Tue)
  • Unix
  • hatena button
  • hatena count
  • save this page del.icio.us

1年ほど前に公開したvalrindのページだが、日増しに国内メーカーさんからのアクセスが増している。参照元URLを見ると社内wikiとか。
大分普及してきたかな。

Asyncronous I/O

  • 2006-11-29 (Wed)
  • Unix
  • hatena button
  • hatena count
  • save this page del.icio.us

ソース。
AsyncIOについて(その1)
AsyncIOについて(その2)

またあちこちのBlogを見る限りNonBlockingI/OやNonBlockingI/O+シグナルとAIOが混同されている気がしたので,それら整理してみたい.

大体以下のような理解でいいのでしょうかね。もしかしたらきっちりした定義が有るのかもしれませんが。

Continue reading

安全なCFLAGS

  • 2006-11-29 (Wed)
  • Unix
  • hatena button
  • hatena count
  • save this page del.icio.us

ソース
うーむ、参考になる。
加えてFedoraCore6上のgcc 4.1.1では-ftrapvをつけると、あるソースをコンパイル中にSegmentation Faultしてしまう事を確認しました。ちょっとここらで安全なCFLAGというのをgcc projectの人に書いてもらいたい所だなぁ。

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

スレッド生成コスト

  • 2006-10-03 (Tue)
  • Unix
  • hatena button
  • hatena count
  • save this page del.icio.us

計測してみた。

Continue reading

Home > Unix Archive

お薦め本
広告
Archives
Categories

Return to page top