Whamcloud - gitweb
LU-11548 llite: increase readahead default values 00/33400/6
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 19 Oct 2018 07:31:41 +0000 (01:31 -0600)
committerOleg Drokin <green@whamcloud.com>
Fri, 2 Oct 2020 00:18:58 +0000 (00:18 +0000)
commit4b47ec5a8e68950ced4895e1ccfdf2254c016194
tree60a3eefbc5b92cb98849410092c570e8302e724a
parent1635dc9de0bc1d6701ca5f4bc0d342fca416f89a
LU-11548 llite: increase readahead default values

It is commonly recommended to increase the readahead tunables
for clients to increase performance, since the current defaults
are too small, having been set several years ago for slower
networks and servers.

Increase the readahead defaults to better match values that are
recommended today:
- read_ahead_max_mb increased from 64MB to 1GB by default,
  or 1/32 RAM, whichever is less
- read_ahead_per_file_max_mb is increased from 64MB to 256MB,
  or 1/4 of read_ahead_max_mb, whichever is less

Modify the constant names to better match the variable and /proc
filenames.

Fix sanity test_101g to allow readahead to generate extra read
RPCs, as long as they are the expected size or larger.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Iec864788fa1979c27adad42e613d1bf03f3ebbe5
Reviewed-on: https://review.whamcloud.com/33400
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Wang Shilong <wshilong@whamcloud.com>
Reviewed-by: Yingjin Qian <qian@ddn.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/tests/sanity.sh