Skip to content

Commit

Permalink
LU-12495 test: shorten qos_maxage to update statfs
Browse files Browse the repository at this point in the history
sanity test_413b() should shorten lmv->desc.qos_maxage to update
cached statfs in time.

Test-Parameter: trivial envdefinitions=ONLY=413b
Test-Parameter: testlist=sanity,sanity,sanity,sanity,sanity,sanity

Signed-off-by: Lai Siyao <[email protected]>
Change-Id: I58672590669be5eaa5c0d679c51cb6cd533bc0d7
Reviewed-on: https://review.whamcloud.com/35395
Reviewed-by: Andreas Dilger <[email protected]>
Tested-by: jenkins <[email protected]>
Tested-by: Maloo <[email protected]>
Reviewed-by: Hongchao Zhang <[email protected]>
  • Loading branch information
Lai Siyao authored and Oleg Drokin committed Jul 12, 2019
1 parent 7a7d075 commit 23cbeb6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lustre/tests/sanity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20000,10 +20000,12 @@ test_413b() {
qos_prio_free=${qos_prio_free%%%}
qos_threshold_rr=$($LCTL get_param -n lmv.*.qos_threshold_rr | head -n1)
qos_threshold_rr=${qos_threshold_rr%%%}
qos_maxage=$($LCTL get_param -n lmv.*.qos_maxage)

stack_trap "$LCTL set_param lmv.*.qos_prio_free=$qos_prio_free" EXIT
stack_trap "$LCTL set_param lmv.*.qos_threshold_rr=$qos_threshold_rr" \
EXIT
stack_trap "$LCTL set_param lmv.*.qos_maxage=$qos_maxage" EXIT

echo "mkdir with roundrobin"

Expand All @@ -20021,6 +20023,9 @@ test_413b() {
rm -rf $DIR/$tdir/*

$LCTL set_param lmv.*.qos_threshold_rr=$qos_threshold_rr
# Shorten statfs result age, so that it can be updated in time
$LCTL set_param lmv.*.qos_maxage=1
sleep_maxage

local ffree
local max
Expand Down

0 comments on commit 23cbeb6

Please sign in to comment.