diff options
author | Aaron Lu <aaron.lu@intel.com> | 2018-03-29 16:25:03 +0800 |
---|---|---|
committer | Fengguang Wu <fengguang.wu@intel.com> | 2018-03-29 16:35:47 +0800 |
commit | 302e9c65c67ce4c1b57c34623125dca7eb02bf9e (patch) | |
tree | 3990d4a41243135375fd7e07b979906819491225 | |
parent | 8214cd45d08363646364ce502671daedae1ddf36 (diff) | |
download | vm-scalability-302e9c65c67ce4c1b57c34623125dca7eb02bf9e.tar.gz |
case-anon-cow-*: adjust per task test size
Due to --prealloc, the main process will also consume one share of
memory so each process' test size should be unit_size/(nr_task+1)
or OOM could occur.
Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
-rwxr-xr-x | case-anon-cow-rand | 2 | ||||
-rwxr-xr-x | case-anon-cow-seq | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/case-anon-cow-rand b/case-anon-cow-rand index db03483..8f0c1fd 100755 --- a/case-anon-cow-rand +++ b/case-anon-cow-rand @@ -3,4 +3,4 @@ . ./hw_vars [ -n "$unit_size" ] || unit_size=$((mem / 2)) -$USEMEM -n $nr_task --prealloc --prefault --random $((unit_size / nr_task)) +$USEMEM -n $nr_task --prealloc --prefault --random $((unit_size / (nr_task+1))) diff --git a/case-anon-cow-seq b/case-anon-cow-seq index 70c2ccc..75f6c8c 100755 --- a/case-anon-cow-seq +++ b/case-anon-cow-seq @@ -3,4 +3,4 @@ . ./hw_vars [ -n "$unit_size" ] || unit_size=$((mem / 2)) -$USEMEM -n $nr_task --prealloc --prefault $((unit_size / nr_task)) +$USEMEM -n $nr_task --prealloc --prefault $((unit_size / (nr_task+1))) |