Whamcloud - gitweb
LU-18430 llite: disable readahead on file with random fadvise 12/56912/6
authorQian Yingjin <qian@ddn.com>
Thu, 7 Nov 2024 03:40:38 +0000 (11:40 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 2 Jan 2025 20:50:20 +0000 (20:50 +0000)
commitb4c141326236cf02276e32117e2490dc29a8d214
treeee2e9b7e92b6e79c85c6de09c27faa1b1bcff69c
parent87beee4a74076c2c7c3a45ea0c6d42446be63c4f
LU-18430 llite: disable readahead on file with random fadvise

If a file is advised with random access pattern via posix_fadvise
with POSIX_FADV_RANDOM mode, the client should not trigger
read-ahead on this file.

Add posix_fadvise option 'i' for "multiop".
Add "forceread_pages" stats into llite.*.read_ahead_stats to
account the force read (random) pages.
Add the test case sanity/test_853 to verify it.

Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: Ie02ace55985c92abffb871184f847400e9da03ad
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56912
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexey Lyashkov <alexey.lyashkov@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/llite/llite_internal.h
lustre/llite/lproc_llite.c
lustre/llite/rw.c
lustre/tests/multiop.c
lustre/tests/sanity.sh