Whamcloud - gitweb
LU-13132 osd: osd-zfs to cache dbufs for llog objects 22/37222/55
authorAlex Zhuravlev <bzzz@whamcloud.com>
Wed, 18 Aug 2021 08:09:49 +0000 (11:09 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 18 Apr 2023 03:21:38 +0000 (03:21 +0000)
commit11a89c5ec16685fda91dd7c052b72012833c2f88
tree6b95111f01ddce4783a80e1d948631cc88226a4a
parentcba8c65b384f92d269944042047f7a58d2808530
LU-13132 osd: osd-zfs to cache dbufs for llog objects

working set for llog objects is tiny and very predictable. osd-zfs
can cache couple dbufs (first block storing the header and last
block for new records).

for sanity/60a (llog test) it gives 5939307 hits and 5776 misses
while average osd_write() goes down from 1.09 usec to 0.27 usec,
total time for sanity/60a: before - 153s, after - 101s.

this approach can be used in few other cases like last_rcvd.

Change-Id: Icc0126658894085d33ef79ae41ac6c1ed4140f4c
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/37222
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/osd-zfs/osd_internal.h
lustre/osd-zfs/osd_io.c
lustre/osd-zfs/osd_object.c