diff options
author | Aaron Lu <aaron.lu@intel.com> | 2018-04-02 15:44:52 +0800 |
---|---|---|
committer | Fengguang Wu <fengguang.wu@intel.com> | 2018-04-02 15:44:52 +0800 |
commit | 7a6ce56cf1b4ffe983eef57ea07b150c817b9d18 (patch) | |
tree | 34fee9238c02436089f25f5b11da22989d033277 | |
parent | f11b2901356f3c15d917059e54184e546f342177 (diff) | |
download | vm-scalability-7a6ce56cf1b4ffe983eef57ea07b150c817b9d18.tar.gz |
hw_vars: comment how PTE_LIMIT is calculated
Signed-off-by: Aaron Lu <aaron.lu@intel.com>
-rwxr-xr-x | hw_vars | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -146,7 +146,11 @@ ROTATE_BYTES=$((1<<42)) # 0000000000000000 - 00007fffffffffff (=47 bits) user space, different per mm AS_LIMIT=$((1<<46)) +# prevent OOM: limit pagetable pages to half available memory +# $mem_avail / 2 / 4K = upper_limit_nr_page_table_pages +# every PTE maps 2M space, so +# $upper_limit_nr_page_table_pages * 2M = upper_limit_test_size = PTE_LIMIT +# PTE_LIMIT = 256 * $mem_tail PTE_LIMIT=$((mem_avail << 8)) -# prevent OOM: limit pagetable pages to half available memory [ "$ROTATE_BYTES" -gt $PTE_LIMIT ] && ROTATE_BYTES=$PTE_LIMIT |