aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Lu <aaron.lu@intel.com>2016-07-18 17:15:00 +0800
committerFengguang Wu <fengguang.wu@intel.com>2016-07-18 17:19:46 +0800
commit195e6559d20ecf53c4ea8cb4dade47d7162775ac (patch)
treeb0da8b8d80169ca60f5a112657c4b15a64c7203d
parent37f440c6eb7140ac780aa1685651159124b88ed3 (diff)
downloadvm-scalability-195e6559d20ecf53c4ea8cb4dade47d7162775ac.tar.gz
case-anon-w-rand: use unit_size instead of fixed $((mem / 2))
So that we can control the write size for vm-scalability run from the LKP environment. Signed-off-by: Aaron Lu <aaron.lu@intel.com> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
-rwxr-xr-xcase-anon-w-rand4
1 files changed, 3 insertions, 1 deletions
diff --git a/case-anon-w-rand b/case-anon-w-rand
index 55485d3..1587c92 100755
--- a/case-anon-w-rand
+++ b/case-anon-w-rand
@@ -2,4 +2,6 @@
. ./hw_vars
-$USEMEM -n $nr_task --random $((mem / nr_task / 2))
+[ -n "$unit_size" ] || unit_size=$((mem / 2))
+
+$USEMEM -n $nr_task --random $((unit_size / $nr_task))