From a55af59ff73b678638375032abb7ec3baf7841a6 Mon Sep 17 00:00:00 2001 From: Patrick Farrell Date: Mon, 30 Apr 2018 07:10:38 -0500 Subject: [PATCH] LU-10970 tests: make sure write is complete The current test does not guarantee the write has arrived on the server before dropping caches and checking memory usage. If the write is still in progress, the baseline memory used value will be incorrect. Sync on the client to force the write out. Test-Parameters: trivial Cray-bug-id: LUS-5923 Signed-off-by: Patrick Farrell Change-Id: Ic0379ffdfd14ff630d65a0197a99fba929868e9c Reviewed-on: https://review.whamcloud.com/32203 Reviewed-by: Andreas Dilger Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Nunez --- lustre/tests/sanity.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 8b3b7a1..e00cf4c 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -16245,6 +16245,9 @@ test_255b() { dd if=/dev/zero of=$DIR/$tfile bs=1048576 count=$size_mb || error "dd to $DIR/$tfile failed" + #force write to complete before dropping OST cache & checking memory + sync + local total=$(facet_meminfo ost1 MemTotal) echo "Total memory: $total KiB" -- 1.8.3.1