Whamcloud - gitweb
LU-13802 llite: add read & write switch thresholds 95/52595/35
authorPatrick Farrell <paf0187@gmail.com>
Mon, 1 Apr 2024 15:30:29 +0000 (11:30 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 29 May 2024 04:41:22 +0000 (04:41 +0000)
commit7bbf65035916c1e94d7c19b94cadc85107523688
tree0c4ffff97e5b96abc6bd099f538ccc0702b1a4e0
parentaa463a7946ee82c181a8c84f982a44e7e175c475
LU-13802 llite: add read & write switch thresholds

The main criteria for switching to from buffered IO to
hybrid is IO size.  This adds that switching.  The correct
size for cutover is not the same for read and write, so we
have separate checks for read and write.

These checks are elaborated on in further patches, adding
different thresholds based on the backing storage type.

Adding the switching thresholds is what really enables
hybrid IO, so we have to adjust a number of tests which
assume buffered IO.

There are a few obscure hang bugs which have been difficult
to track down, and we are past feature freeze, so this patch
now leaves hybrid IO disabled by default.

Signed-off-by: Patrick Farrell <patrick.farrell@oracle.com>
Change-Id: I491cd7b2bdafe8bb2c1a4d692442a62154324bec
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52595
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/lproc_llite.c
lustre/tests/sanity.sh