Skip to content

Commit

Permalink
doc: update some of the outdated cache tiering doc
Browse files Browse the repository at this point in the history
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
  • Loading branch information
wonzhq committed Aug 20, 2015
1 parent de00f6d commit d5a56c4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
13 changes: 6 additions & 7 deletions doc/dev/cache-pool.rst
Expand Up @@ -105,13 +105,7 @@ The hit_set_count and hit_set_period define how much time each HitSet
should cover, and how many such HitSets to store. Binning accesses
over time allows Ceph to independently determine whether an object was
accessed at least once and whether it was accessed more than once over
some time period ("age" vs "temperature"). Note that the longer the
period and the higher the count the more RAM will be consumed by the
ceph-osd process. In particular, when the agent is active to flush or
evict cache objects, all hit_set_count HitSets are loaded into RAM.

Currently there is minimal benefit for hit_set_count > 1 since the
agent does not yet act intelligently on that information.
some time period ("age" vs "temperature").

The ``min_read_recency_for_promote`` defines how many HitSets to check for the
existence of an object when handling a read operation. The checking result is
Expand All @@ -124,6 +118,11 @@ found in any of the most recent ``min_read_recency_for_promote`` HitSets. ::

ceph osd pool set {cachepool} min_read_recency_for_promote 1

Note that the longer the ``hit_set_period`` and the higher the
``min_read_recency_for_promote`` the more RAM will be consumed by the ceph-osd
process. In particular, when the agent is active to flush or evict cache objects,
all hit_set_count HitSets are loaded into RAM.

Cache mode
~~~~~~~~~~

Expand Down
8 changes: 4 additions & 4 deletions doc/rados/operations/cache-tiering.rst
Expand Up @@ -197,10 +197,10 @@ found in any of the most recent ``min_read_recency_for_promote`` HitSets. ::

ceph osd pool set {cachepool} min_read_recency_for_promote 1

.. note:: The longer the period and the higher the count, the more RAM the
``ceph-osd`` daemon consumes. In particular, when the agent is active to
flush or evict cache objects, all ``hit_set_count`` HitSets are loaded
into RAM.
.. note:: The longer the period and the higher the min_read_recency_for_promote,
the more RAM the ``ceph-osd`` daemon consumes. In particular, when the agent
is active to flush or evict cache objects, all ``hit_set_count`` HitSets are
loaded into RAM.


Cache Sizing
Expand Down

0 comments on commit d5a56c4

Please sign in to comment.