タグ

2012年10月31日のブックマーク (3件)

  • OOM Killer対策

    先日のこの話 、Out Of Memory Killer 、通称OOM Killerのせいらしい。キャッシュとしてshared memoryを贅沢に(^^;)使用するPostgresSQLのWrite processが集中的に狙われてます>_<。 直接的にこの仕組みを切るにはecho 0 > /proc/sys/vm/oom-kill かecho -17 > /proc/(PID)/oom_adj ただし前者はRedHat独自&OOM Killer完全停止、後者はカーネル2.6.11以降&プロセスごとに設定。CentOS 4.4のカーネルは現時点2.6.9なので前者。もうひとつの方法として、OOM Killerが発動する1つの原因を作っているメモリのオーバーコミットをさせない方法。具体的には、 echo 2 > /proc/sys/vm/overcommit_memory echo 90

    witchstyle
    witchstyle 2012/10/31
    [Linux/kernel] (2007/03/13のエントリ) Out Of Memory Killer、通称OOM Killerを止める方法
  • /proc and /sys tricks

    Really the sysfs and /proc filesystems are worlds of magic and fantasy. Each day I discover a new trick using this filesystems. So, I decided to post a short summary of my favorites ones. Enjoy and feel free to add your tricks in comments, maybe we can a /proc and /sys knownledge database in a post 🙂 1. Scanning for LUNs in attached FC (or any other SCSI compliance host). echo "- - -" > /sys/clas

    /proc and /sys tricks
    witchstyle
    witchstyle 2012/10/31
    (2009/06/20のエントリ) cat /proc/XXX/fd/YY > /tmp/myfile_restored で、「間違ってrmしたけど、まだ何かのプロセスが開いているファイル」を復旧できるとはしらなかった
  • JavaScriptのテストツール「testem」が素晴らしいぞ - Mach3.laBlog

    この記事は賞味期限切れです。(更新から1年が経過しています) JavaScriptユニットテスト一年生の私が、Nettuts+ のチュートリアルで知ったテストツール 「testem」のお陰で大変捗ったので是非お勧めしたく、ここで紹介してみます。 testem ってなに testem via GitHub : airportyh/testem Unit testing in Javascript can be tedious and painful, but Testem makes it so easy that you will actually want to write tests. 要するに、面倒なJSのユニットテストをより快適にしてみんなでハッピーにテスト書こうよ!というツールです。 testem自体はnode.jsベースで動作し、Jasmine/QUnit/Mochaに対応して

    JavaScriptのテストツール「testem」が素晴らしいぞ - Mach3.laBlog
    witchstyle
    witchstyle 2012/10/31
    [プログラミング/テスト][jasmine][ノウハウ][node.js] (2012/10/31のエントリ)