]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: make trim() of 2Q cache more fine-grained 9946/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 29 Jun 2016 04:41:23 +0000 (12:41 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 30 Jun 2016 00:34:21 +0000 (08:34 +0800)
commit9cc550e03ed80c4c68f47e0a390d962299c9ca66
treea9ab5fc739646cb7b592329e1f3e02ca867f2c15
parentaf7731b04b7eb2770c65ad9db97e726a3f496736
os/bluestore: make trim() of 2Q cache more fine-grained

1. count total bytes as per buffer types respectively,
   so we know the exact size of each kind of buffer.

2. evict by list actual size against expected size,
   which is more accurate.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h