From: Bobi Jam Date: Mon, 10 Oct 2016 05:44:27 +0000 (+0800) Subject: LU-8413 test: limit # of processes for sanity test_101f X-Git-Tag: 2.8.60~42 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F39%2F23039%2F3;p=fs%2Flustre-release.git LU-8413 test: limit # of processes for sanity test_101f It tries to test mmap readahead does not miss too much pages, so we need limit the number of processes of the iozone read. Test-Parameters: trivial Signed-off-by: Bobi Jam Change-Id: Ic5c753549234fe2bffcaa42f75208c2295f84ac0 Reviewed-on: http://review.whamcloud.com/23039 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Nunez Reviewed-by: Jinshan Xiong Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 53684a0..3ff73da 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -6725,6 +6725,7 @@ test_101f() { which iozone || { skip "no iozone installed" && return; } local old_debug=$($LCTL get_param debug) + old_debug=${old_debug#*=} $LCTL set_param debug="reada mmap" # create a test file @@ -6737,14 +6738,15 @@ test_101f() { $LCTL set_param -n llite.*.read_ahead_stats 0 echo mmap read the file with small block size - iozone -i 1 -+n -r 32k -s 128m -B -f $DIR/$tfile > /dev/null 2>&1 + iozone -i 1 -u 1 -l 1 -+n -r 32k -s 128m -B -f $DIR/$tfile \ + > /dev/null 2>&1 echo checking missing pages $LCTL get_param llite.*.read_ahead_stats local miss=$($LCTL get_param -n llite.*.read_ahead_stats | get_named_value 'misses' | cut -d" " -f1 | calc_total) - $LCTL set_param debug=$old_debug + $LCTL set_param debug="$old_debug" [ $miss -lt 3 ] || error "misses too much pages ('$miss')!" rm -f $DIR/$tfile }