support. It features less network traffic and disk I/O when performing
recovery.
-* The 'drop cache' OSD command has been added to drop an OSD's caches:
+* The 'cache drop' OSD command has been added to drop an OSD's caches:
- - ``ceph tell osd.x drop cache``
+ - ``ceph tell osd.x cache drop``
-* The 'get cache stats' OSD command has been added to get an OSD's cache stats:
+* The 'cache status' OSD command has been added to get the cache stats of an
+ OSD:
- - ``ceph tell osd.x get cache stats'
+ - ``ceph tell osd.x cache status'
>=13.1.0
--------
ceph tell osd.N bench [TOTAL_DATA_BYTES] [BYTES_PER_WRITE]
-To clear an OSD's caches between benchmarking runs, use the 'drop cache' command ::
+To clear an OSD's caches between benchmark runs, use the 'cache drop' command ::
- ceph tell osd.N drop cache
+ ceph tell osd.N cache drop
-To get the cache statistics of an OSD, use the 'get cache stats' command ::
+To get the cache statistics of an OSD, use the 'cache status' command ::
- ceph tell osd.N get cache stats
+ ceph tell osd.N cache status
MDS Subsystem
=============
COMMAND("smart name=devid,type=CephString,req=False",
"runs smartctl on this osd devices. ",
"osd", "rw", "cli,rest")
-COMMAND("drop cache",
+COMMAND("cache drop",
"Drop all OSD caches",
"osd", "rw", "cli,rest")
-COMMAND("get cache stats",
+COMMAND("cache status",
"Get OSD caches statistics",
"osd", "r", "cli,rest")
};
probe_smart(devid, ds);
}
- else if (prefix == "drop cache") {
+ else if (prefix == "cache drop") {
dout(20) << "clearing all caches" << dendl;
// Clear the objectstore's cache - onode and buffer for Bluestore,
// system's pagecache for Filestore
}
}
- else if (prefix == "get cache stats") {
+ else if (prefix == "cache status") {
int obj_ctx_count = 0;
vector<PGRef> pgs;
_get_pgs(&pgs);
obj_ctx_count += pg->get_cache_obj_count();
}
if (f) {
- f->open_object_section("cache_stats");
+ f->open_object_section("cache_status");
f->dump_int("object_ctx", obj_ctx_count);
store->dump_cache_stats(f.get());
f->close_section();