aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFengguang Wu <fengguang.wu@intel.com>2013-09-22 09:18:28 +0800
committerFengguang Wu <fengguang.wu@intel.com>2013-09-29 12:15:45 +0800
commite31158623aeec7c65eea35541d50da5fc58e620f (patch)
tree35c74085219830fc361bf44713f7b816a824d293
parentdba78d237f84f622085c15b67cc3487bba9792ea (diff)
downloadvm-scalability-e31158623aeec7c65eea35541d50da5fc58e620f.tar.gz
fix too large truncate size
truncate: failed to truncate '/tmp/vm-scalability/sparse-mremap-xread-rand-mt-8' at 8796093022208 bytes: File too large Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
-rwxr-xr-xcase-mmap-pread-rand2
-rwxr-xr-xcase-mremap-xread-rand-mt2
-rwxr-xr-xhw_vars2
3 files changed, 3 insertions, 3 deletions
diff --git a/case-mmap-pread-rand b/case-mmap-pread-rand
index 0df5757..51c78c1 100755
--- a/case-mmap-pread-rand
+++ b/case-mmap-pread-rand
@@ -2,7 +2,7 @@
source ./hw_vars
-create_sparse_file $SPARSE_FILE $((ROTATE_BYTES))
+create_sparse_file $SPARSE_FILE $((ROTATE_BYTES / nr_cpu))
$USEMEM -n $nr_cpu -f $SPARSE_FILE --readonly --random $((ROTATE_BYTES / nr_cpu))
diff --git a/case-mremap-xread-rand-mt b/case-mremap-xread-rand-mt
index 4737393..cfb13ea 100755
--- a/case-mremap-xread-rand-mt
+++ b/case-mremap-xread-rand-mt
@@ -12,7 +12,7 @@ source ./hw_vars
for i in `seq $nr_cpu`
do
- create_sparse_file $SPARSE_FILE-$i $ROTATE_BYTES
+ create_sparse_file $SPARSE_FILE-$i $((ROTATE_BYTES / nr_cpu))
$USEMEM -t $nr_cpu -f $SPARSE_FILE-$i -E --prealloc --readonly --random $((ROTATE_BYTES / nr_cpu)) &
done
wait
diff --git a/hw_vars b/hw_vars
index dfd1ca9..173b877 100755
--- a/hw_vars
+++ b/hw_vars
@@ -81,7 +81,7 @@ hugepagesize=$((Hugepagesize << 10))
if [[ $ROTATE_BYTES ]]; then
:
elif [[ $runtime ]]; then
- ROTATE_BYTES=$((1<<43))
+ ROTATE_BYTES=$((1<<42))
else
ROTATE_BYTES=$mem
fi