From 4d27b2b6768189f3ad825a009bc53dcea56771fa Mon Sep 17 00:00:00 2001 From: grev Date: Thu, 10 Dec 2009 10:58:01 +0000 Subject: [PATCH] b=20580 o=Johann i=Andrew.Perepechko i=grev directio allocates the buffer twice, reduce test filesize --- lustre/tests/sanity.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index cdec0bd..17d1adc 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -3601,13 +3601,17 @@ unset F77_TMP test_78() { # bug 10901 remote_ost || { skip_env "local OST" && return; } + cancel_lru_locks osc NSEQ=5 F78SIZE=$(($(awk '/MemFree:/ { print $2 }' /proc/meminfo) / 1024)) echo "MemFree: $F78SIZE, Max file size: $MAXFREE" + # directio allocates the buffer twice, one for writes and another + # one for reads, so that it can check the data consistency + F78SIZE=$((F78SIZE / 2)) MEMTOTAL=$(($(awk '/MemTotal:/ { print $2 }' /proc/meminfo) / 1024)) echo "MemTotal: $MEMTOTAL" -# reserve 256MB of memory for the kernel and other running processes, -# and then take 1/2 of the remaining memory for the read/write buffers. + # reserve 256MB of memory for the kernel and other running processes, + # and then take 1/2 of the remaining memory for the read/write buffers. MEMTOTAL=$(((MEMTOTAL - 256 ) / 2)) echo "Mem to use for directio: $MEMTOTAL" [ $F78SIZE -gt $MEMTOTAL ] && F78SIZE=$MEMTOTAL -- 1.8.3.1