Whamcloud - gitweb
LU-8139 ofd: allow brw_size with 'M' suffix 35/25335/7
authorAndreas Dilger <andreas.dilger@intel.com>
Wed, 8 Feb 2017 22:20:27 +0000 (15:20 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 9 Mar 2017 06:13:00 +0000 (06:13 +0000)
commit5d773de6ffb0cbaf0b94f5305a8e4091741aa9c2
treea104f2787fc66803e5a9924f090bab0200ee10d2
parent1d244997ad88ba436fac2c2c80a784164ab20822
LU-8139 ofd: allow brw_size with 'M' suffix

Allow specifying the 'M' suffix for the obdfilter.*.brw_size tunable
to maintain compatibility with original version of this tunable.

Fix sanity.sh test_101g() to only specify the 'M' suffix if this is
allowed by the server version, otherwise specify only the number.
Check both read and write RPC counts in the test, and also 8MB RPCs.

Clean up test_101g() to remove duplicate code, and only change the
brw_size parameter and remount the clients if the current brw_size
is not large enough.  Calculate the number of pages correctly for
systems with different PAGE_SIZE.

Test-Parameters: trivial envdefinitions=ONLY=101 testlist=sanity,sanity
Test-Parameters: envdefinitions=ONLY=101 testlist=sanity,sanity,sanity
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: If7b268e3ec1160b41a676590a07511a2953ebbe5
Reviewed-on: https://review.whamcloud.com/25335
Reviewed-by: Gu Zheng <gzheng@ddn.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ofd/lproc_ofd.c
lustre/tests/sanity.sh