]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: add flush_store_cache cmd 13428/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 14 Feb 2017 03:40:48 +0000 (11:40 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 16 Feb 2017 00:45:44 +0000 (08:45 +0800)
commit650d9d0e5480c5d308b37de8a0639302db6cd058
tree02c1211522e053e700a976c2c47880cc1e8c6d89
parentd4db8e04ddfe994d290eac0f5b22a59e479a1352
os/bluestore: add flush_store_cache cmd

We want this cmd for bluestore testing, e.g., to exclude the impact of
the bluestore internal cache without rebooting host.

e.g.:
[root@tecs131 ~]# ceph --admin-daemon /run/ceph/ceph-osd.1.asok perf dump | grep "bluestore_buffers"
        "bluestore_buffers": 3166,
[root@tecs131 ~]# ceph --admin-daemon /run/ceph/ceph-osd.1.asok flush_store_cache
[root@tecs131 ~]# ceph --admin-daemon /run/ceph/ceph-osd.1.asok perf dump | grep "bluestore_buffers"
        "bluestore_buffers": 95,

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