]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/os/seastore: measure transactional efforts that are discarded or committed
authorYingxin Cheng <yingxin.cheng@intel.com>
Thu, 15 Jul 2021 02:26:02 +0000 (10:26 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Tue, 20 Jul 2021 08:44:16 +0000 (16:44 +0800)
commita981417833df6546a0f7b3eb6d75286bfd7d4d30
treec04443991233303dfeda9b37dfdab8c88750097b
parent21580723aa6a6ed18cc232571311511437f9dfaf
crimson/os/seastore: measure transactional efforts that are discarded or committed

The efforts of a transaction include the number and bytes of its read,
mutate, retire and fresh extents, and the bytes of delta generated.

This helps to understand the following aspects:
* The ratio of discarded efforts vs committed efforts;
* The average efforts of a transaction;
* The distribution of read/mutate/delta/retire/fresh efforts;
* The memory overhead and potential disk overhead of a transaction;
* How early a transaction invalidation happens;
* The average extent length;

It is possible to extend the effort metrics to be labeled by extent
types, in case we want to distinguish and profile the efforts at the
sub-component level.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/cache.cc
src/crimson/os/seastore/cache.h