test/blobfs: add 'drop_cache' in run_tests script

This adds support for cleaning page caches between each of the
db_bench test within run_test.sh script.

Change-Id: Ibcf37945d530a7a940d4a6365e3f1a9eeffb26c0
Signed-off-by: Vishal Verma <vishal4.verma@intel.com>
Reviewed-on: https://review.gerrithub.io/373631
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Vishal Verma 2017-08-09 09:32:27 -07:00 committed by Daniel Verkamp
parent 752a4576de
commit 94262269de

View File

@ -148,6 +148,7 @@ run_step() {
if [ "$NO_SPDK" = "1" ]
then
drop_caches
cat /sys/block/nvme0n1/stat >> "$1"_blockdev_stats.txt
fi
@ -161,6 +162,12 @@ run_step() {
fi
}
drop_caches() {
echo -n Cleaning Page Cache...
echo 3 > /proc/sys/vm/drop_caches
echo done.
}
if [ -z "$SKIP_INSERT" ]
then
run_step insert