diff options
author | Aaron Lu <aaron.lu@intel.com> | 2018-05-29 14:56:19 +0800 |
---|---|---|
committer | Fengguang Wu <fengguang.wu@intel.com> | 2018-06-05 14:50:23 +0800 |
commit | 144498144d363f9a8f998d12a619f5f86ec21ae7 (patch) | |
tree | 7eeefda68c4aaea13edd777fea60c76fc59ea9e0 | |
parent | 7afdeab54a58825ba346ad83615afd1ac105c1b0 (diff) | |
download | vm-scalability-144498144d363f9a8f998d12a619f5f86ec21ae7.tar.gz |
mmap-pread-seq: limit page table consumption
commit f11b2901356f("hw_vars: limit pagetable to half available memory")
has calculated the biggest possible ROTATE_BYTES value that will limit
page table consumption under 1/2 of MemAvail.
For multi-process test, each process will have its own page table
setup so we need to divide nr_task from ROTATE_BYTES.
Reported-by: Rong Chen <rongx.a.chen@intel.com>
Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
-rwxr-xr-x | case-mmap-pread-seq | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/case-mmap-pread-seq b/case-mmap-pread-seq index 930b678..73ba8be 100755 --- a/case-mmap-pread-seq +++ b/case-mmap-pread-seq @@ -4,6 +4,6 @@ create_sparse_file $SPARSE_FILE $((ROTATE_BYTES)) -$USEMEM -n $nr_task -f $SPARSE_FILE --readonly $((ROTATE_BYTES)) +$USEMEM -n $nr_task -f $SPARSE_FILE --readonly $((ROTATE_BYTES / nr_task)) rm $SPARSE_FILE |