X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fsanity.sh;h=0dffc84f2573a9b6562ee10638119d636eb34d2a;hb=3520d519bb54162231765115cf8d711639c99a62;hp=3fb9f3ebfb0b30179bd085e256155892226dd911;hpb=55c143a66df9023808530a765c14ba506ec1b8e1;p=fs%2Flustre-release.git diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 3fb9f3e..0dffc84 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -24060,15 +24060,15 @@ ladvise_willread_performance() speedup_ladvise=$(percent $average_ladvise $average_origin) echo "Average uncached read: $average_origin" - echo "Average speedup with OSS cached read: " \ + echo "Average speedup with OSS cached read:" \ "$average_cache = +$speedup_cache%" - echo "Average speedup with ladvise willread: " \ + echo "Average speedup with ladvise willread:" \ "$average_ladvise = +$speedup_ladvise%" local lowest_speedup=20 - if (( ${average_cache%.*} < $lowest_speedup )); then + if (( ${speedup_cache%.*} < $lowest_speedup )); then echo "Speedup with OSS cached read less than $lowest_speedup%,"\ - " got $average_cache%. Skipping ladvise willread check." + "got $speedup_cache%. Skipping ladvise willread check." return 0 fi @@ -24079,10 +24079,10 @@ ladvise_willread_performance() echo "osd-zfs does not support dontneed or drop_caches" && return 0 - lowest_speedup=$(bc <<<"scale=2; $average_cache / 2") - (( ${average_ladvise%.*} > ${lowest_speedup%.*} )) || + lowest_speedup=$(bc <<<"scale=2; $speedup_cache / 2") + (( ${speedup_ladvise%.*} > ${lowest_speedup%.*} )) || error_not_in_vm "Speedup with willread is less than " \ - "$lowest_speedup%, got $average_ladvise%" + "$lowest_speedup%, got $speedup_ladvise%" } test_255a() {