Whamcloud - gitweb
LU-10465 osd-ldiskfs: 8MiB IOs should bypass cache
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 3 Nov 2023 23:49:29 +0000 (17:49 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 9 Nov 2023 08:44:29 +0000 (08:44 +0000)
commitff832c97fe618fa64141adbda55a881891c237a7
treeb4c4b4306b1331f2de14f50976abce939d21b04f
parent9de770fc5f552c9e5d2278237993f99ca9a9a335
LU-10465 osd-ldiskfs: 8MiB IOs should bypass cache

Changes the writethrough_max_io_mb and readcache_max_io_mb
params to check for IO size >= max_io_mb instead of > max_io_mb
when deciding to bypass cache.

Read/write IOs that are 8MiB in size should bypass the pagecache
on the OSTs, rather than requiring IOs that are slightly larger
than this.  8MiB is enough to submit 1MiB to each HDD spindle in
an 8+2 RAID6, and caching these writes on the OSS is not helping.

Lustre-change: https://review.whamcloud.com/52989
Lustre-commit: TBD (from dcdc4748f1443981a170bc2945b178226e64a6d4)

Test-Parameters: trivial
Fixes: 3043c6f189 ("LU-12071 osd-ldiskfs: bypass pagecache if requested")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Iae435f5b99e2e8bc6a9458fedad65a81c2853350
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53033
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_io.c