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
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() {