aboutsummaryrefslogtreecommitdiffstats
path: root/tests/runfiles
diff options
context:
space:
mode:
authorFinix1979 <[email protected]>2022-09-09 01:29:41 +0800
committerGitHub <[email protected]>2022-09-08 10:29:41 -0700
commit320f0c6022e1c9bdc9063f849c6b2e4fa3b93995 (patch)
tree644183a6289eaea14a99e76c386292518c07ee7a /tests/runfiles
parent380b08098edf152b1d98e4f48b9577ce44d39166 (diff)
Add Linux posix_fadvise support
The purpose of this PR is to accepts fadvise ioctl from userland to do read-ahead by demand. It could dramatically improve sequential read performance especially when primarycache is set to metadata or zfs_prefetch_disable is 1. If the file is mmaped, generic_fadvise is also called for page cache read-ahead besides dmu_prefetch. Only POSIX_FADV_WILLNEED and POSIX_FADV_SEQUENTIAL are supported in this PR currently. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Finix Yan <[email protected]> Closes #13694
Diffstat (limited to 'tests/runfiles')
-rw-r--r--tests/runfiles/linux.run4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/runfiles/linux.run b/tests/runfiles/linux.run
index 9b32e73af..09dfb5eb1 100644
--- a/tests/runfiles/linux.run
+++ b/tests/runfiles/linux.run
@@ -89,6 +89,10 @@ tags = ['functional', 'devices']
tests = ['events_001_pos', 'events_002_pos', 'zed_rc_filter', 'zed_fd_spill']
tags = ['functional', 'events']
+[tests/functional/fadvise:Linux]
+tests = ['fadvise_sequential']
+tags = ['functional', 'fadvise']
+
[tests/functional/fallocate:Linux]
tests = ['fallocate_prealloc', 'fallocate_zero-range']
tags = ['functional', 'fallocate']