From fc761f902bcb7a91dcfd888e3911e75aa49dcffa Mon Sep 17 00:00:00 2001 From: Mohamad Gebai Date: Thu, 4 Oct 2018 13:07:49 -0400 Subject: [PATCH] doc: add documentation for 'drop cache' and 'get cache stats' Signed-off-by: Mohamad Gebai --- PendingReleaseNotes | 8 ++++++++ doc/rados/operations/control.rst | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/PendingReleaseNotes b/PendingReleaseNotes index eb0e8f34df3ed..4f5472f1d1edf 100644 --- a/PendingReleaseNotes +++ b/PendingReleaseNotes @@ -50,6 +50,14 @@ 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: + + - ``ceph tell osd.x drop cache`` + +* The 'get cache stats' OSD command has been added to get an OSD's cache stats: + + - ``ceph tell osd.x get cache stats' + >=13.1.0 -------- diff --git a/doc/rados/operations/control.rst b/doc/rados/operations/control.rst index 0e790d4596efa..6ccf9c2793893 100644 --- a/doc/rados/operations/control.rst +++ b/doc/rados/operations/control.rst @@ -276,6 +276,13 @@ concurrently accessing the OSD. :: 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 :: + + ceph tell osd.N drop cache + +To get the cache statistics of an OSD, use the 'get cache stats' command :: + + ceph tell osd.N get cache stats MDS Subsystem ============= -- 2.39.5