Whamcloud - gitweb
LU-15496 tests: add debugging to sanity/398c 62/53462/6
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 14 Dec 2023 14:23:12 +0000 (07:23 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 15 Feb 2024 07:08:22 +0000 (07:08 +0000)
Dump the rpc_stats to help understand why the test is failing.

Test-Parameters: trivial testlist=sanity clientarch=ppc64le env=ONLY=398c,ONLY_REPEAT=100
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I5ed1b7133eddd242b234a05a670e152e4ca359b7
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53462
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Alex Deiter
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity.sh

index 622a0fb..b15c2ca 100755 (executable)
@@ -26979,7 +26979,10 @@ test_398c() { # LU-4198
        pct=$($LCTL get_param osc.${imp_name}.rpc_stats |
                grep -A 1 'pages per rpc' | grep -v 'pages per rpc' |
                awk '{print $7}')
-       [ $pct -le 50 ] || error "$pct% of I/O are 1-page"
+       (( $pct <= 50 )) || {
+               $LCTL get_param osc.${imp_name}.rpc_stats
+               error "$pct% of I/O are 1-page"
+       }
 
        echo "mix rw ${size}M to OST0 by fio with $njobs jobs..."
        fio --name=rand-rw --rw=randrw --bs=$PAGE_SIZE --direct=1 \