From 304ca31e2aa15c576e468a86e45d8817c8eca391 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Thu, 14 Dec 2023 07:23:12 -0700 Subject: [PATCH] LU-15496 tests: add debugging to sanity/398c 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 Change-Id: I5ed1b7133eddd242b234a05a670e152e4ca359b7 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53462 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Arshad Hussain Reviewed-by: Jian Yu Reviewed-by: Alex Deiter Reviewed-by: Oleg Drokin --- lustre/tests/sanity.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 622a0fb..b15c2ca 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -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 \ -- 1.8.3.1