Whamcloud - gitweb
LU-12910 osc: allow increasing osc.*.short_io_bytes 87/36587/16
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 26 Oct 2019 11:32:03 +0000 (05:32 -0600)
committerOleg Drokin <green@whamcloud.com>
Fri, 6 Dec 2019 01:12:25 +0000 (01:12 +0000)
commitcedc7f361a6e7c9770bc22b60dafff0d365f073c
tree4ecb663b4c15b63060f483ca1a592d6739a45fa1
parent8167e3ad64276676f07d1ba7b9473c2ce74b64e3
LU-12910 osc: allow increasing osc.*.short_io_bytes

The osc.*.short_io_bytes parameter was mixing up the default and
maximum parameter values, and did not allow increasing the parameter
beyond the default.

Allow it to be increased to the maximum value, which depends on the
client PAGE_SIZE, and the amount of free space in the maximally-sized
OST RPC.  Since the maximum size is system dependent, allow some
grace when setting the parameter, so that a single tunable parameter
can work on a variety of different systems.

However, if it is larger than the maximum RDMA size (which is already
too large) return an error, as it means something is wrong.

Add a test case to exercise the osc.*.short_io_bytes parameter.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I2ce73af5963a0f9e0f1079dd2f91a4495a3ebbe5
Reviewed-on: https://review.whamcloud.com/36587
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Olaf Faaland-LLNL <faaland1@llnl.gov>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_net.h
lustre/ldlm/ldlm_lib.c
lustre/obdclass/lprocfs_status.c
lustre/tests/sanity.sh