]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/os/seastore: cache metadata during trimming to prevent from disk read
authormyoungwon oh <ohmyoungwon@gmail.com>
Mon, 18 Mar 2024 06:48:07 +0000 (06:48 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Wed, 8 May 2024 07:06:30 +0000 (10:06 +0300)
commitbbe7cc2888e9f509dab216e8340eca9ded43b77b
tree68ab882c6172b34710d0f9dcbadebd5b093ea1d5
parent96805dcf909541c4ca9a1e90258de8ae5b6fa1bc
crimson/os/seastore: cache metadata during trimming to prevent from disk read

I encountered continous disk reads during trimming even though there are sufficient
cache available, in 4K random write test with RBM (RBD).
This is because metadata is note cached if its source is background transaction
within touch_extent(). So, seastore, including the trimming process,  needs to
constantly retrieve metadata (e.g., BACKREF_LEAF).

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
(cherry picked from commit 7f253ce5aa98018b5b209fd6e062078d151ad567)
src/crimson/os/seastore/cache.h