Skip to content

Instantly share code, notes, and snippets.

@dann
Created August 31, 2009 15:37
Show Gist options
  • Select an option

  • Save dann/178519 to your computer and use it in GitHub Desktop.

Select an option

Save dann/178519 to your computer and use it in GitHub Desktop.
◇ 基本
どこから: adjusted evictionが高いところの slabを移動させる
* adjusted eviction = eviction_count * items_per_slab
どこに: unique hit rateが低い場所に移動
* unique hit rate = unique_hits / number_of_slabs
高いeviction数でかつ低いヒットレートのslabクラスがある。
この問題を避けるために、rebalaceされるクラスの両方のslab classで
eviction数の合計をカウントする。
リバランスされたのが役に立ったかどうかを発見するために比較する。
もしそうでなかったら、それらを元に戻す。
高いevictionでかつ低いヒット率のslab向けに、rebalanceを遅らせて、他のslabがrebalanceされる機会を与えるために、rebalance waitを設定する。
※ evictionってのが、追い出し。データがセットされるときに追い出されるって意味。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment