ablog

不器用で落着きのない技術者のメモ

performance

データベース、OS、パフォーマンスを勉強したい人におすすめの入門編の書籍・資料

データベース、OS、パフォーマンスを勉強したい人におすすめの入門編の書籍・資料(一部入門編でないものも含んでいます)。絵で見てわかるOS/ストレージ/ネットワーク 新装版作者:木村 達也,西田 光志,鳥嶋 一孝,田中 彰人,小田 圭二出版社/メーカー: 翔泳…

”私の環境で”大きなテキストファイルをawkで処理するときにcatで投げ込むと速い理由

大きなテキストファイルをawkで処理するときにcatで投げ込むと速い理由 - ablog を書きましたが、awk file > file より cat file|awk > file が速い環境は稀なようなので、私の環境でなぜ cat file|awk > file のほうが速いのか調べてみました。プロセススケ…

大きなテキストファイルをawkで処理するときにcatで投げ込むと速い理由

以下、長々と書いてますが、結論は ”私の環境で”大きなテキストファイルをawkで処理するときにcatで投げ込むと速い理由 - ablogに書いてます はじめに awk file より cat file|awk のほうが速いという以下のブログエントリが興味深いので調べてみました。 ち…

micbench でノートPCのメモリアクセスレイテンシを計測してみた

環境 ハードウェア Lenovo Thinkpad X230 Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz L1 Data Cache: 32KB L1 Instruction Cache: 32KB L2 Cache: 256KB L3 Cache: 3MB $ cat /proc/cpuinfo |grep 'model name'|head -1 model name : Intel(R) Core(TM) i5-3…

blktrace を使ってみる

[root@yazekats-linux ~]# blktrace -d /dev/sda -o -|blkparse -i - Invalid debug path /sys/kernel/debug: 0/Success と怒られた。 [root@yazekats-linux ~]# mount -t debugfs debugfs /sys/kernel/debug とすると、使えるようになった。 [root@yazekats…

svctm * (r/s+w/s) is always 1000 if %util is 100%.

If %util is 100%, svctm is just 1 / (r/s + w/s) seconds, 1000/(r/s+w/s) milliseconds. This is an inverse number of IOPS. In other words, svctm * (r/s+w/s) is always 1000 if %util is 100%. So checking svctm is practically as same as checkin…

stressコマンドでI/O負荷をかけてみる

http://d.hatena.ne.jp/happs/20100912/1284253155 を参考に stress コマンドで I/O 負荷をかけてみた。 インストールする。 [root@****** ~]# yum install stress Is this ok [y/N]: y ... Is this ok [y/N]: y ... Installed: stress.x86_64 0:1.0.4-4.el6…