diff options
author | Huang Ying <ying.huang@intel.com> | 2018-05-11 15:58:53 +0800 |
---|---|---|
committer | Fengguang Wu <fengguang.wu@intel.com> | 2018-05-11 16:20:20 +0800 |
commit | 5a31b990bf0265e6faddea15216a169515a4781a (patch) | |
tree | 2ea21d58c8d4baa2b9d7248e43c3a2a5fb907e56 | |
parent | f218124ddd60fbd37fc9610aac78783c4742678f (diff) | |
download | vm-scalability-5a31b990bf0265e6faddea15216a169515a4781a.tar.gz |
Add some hugetlb cases
Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
-rwxr-xr-x | case-anon-cow-rand-hugetlb | 9 | ||||
-rwxr-xr-x | case-anon-cow-seq-hugetlb | 9 | ||||
-rwxr-xr-x | case-anon-w-rand-hugetlb | 9 | ||||
-rwxr-xr-x | case-anon-w-seq-hugetlb | 9 | ||||
-rw-r--r-- | setup_hugetlb | 4 |
5 files changed, 40 insertions, 0 deletions
diff --git a/case-anon-cow-rand-hugetlb b/case-anon-cow-rand-hugetlb new file mode 100755 index 0000000..74f3eff --- /dev/null +++ b/case-anon-cow-rand-hugetlb @@ -0,0 +1,9 @@ +#!/bin/sh + +. ./hw_vars + +[ -n "$unit_size" ] || unit_size=$((mem / 2)) + +. ./setup_hugetlb + +$USEMEM -n $nr_task --prealloc --prefault --random -O -U $((unit_size / (nr_task+1))) diff --git a/case-anon-cow-seq-hugetlb b/case-anon-cow-seq-hugetlb new file mode 100755 index 0000000..59cbc7d --- /dev/null +++ b/case-anon-cow-seq-hugetlb @@ -0,0 +1,9 @@ +#!/bin/sh + +. ./hw_vars + +[ -n "$unit_size" ] || unit_size=$((mem / 2)) + +. ./setup_hugetlb + +$USEMEM -n $nr_task --prealloc --prefault -O -U $((unit_size / (nr_task+1))) diff --git a/case-anon-w-rand-hugetlb b/case-anon-w-rand-hugetlb new file mode 100755 index 0000000..498af0c --- /dev/null +++ b/case-anon-w-rand-hugetlb @@ -0,0 +1,9 @@ +#!/bin/sh + +. ./hw_vars + +[ -n "$unit_size" ] || unit_size=$((mem / 2)) + +. ./setup_hugetlb + +$USEMEM -n $nr_task -O -U --random $((unit_size / nr_task)) diff --git a/case-anon-w-seq-hugetlb b/case-anon-w-seq-hugetlb new file mode 100755 index 0000000..fc98af0 --- /dev/null +++ b/case-anon-w-seq-hugetlb @@ -0,0 +1,9 @@ +#!/bin/sh + +. ./hw_vars + +[ -n "$unit_size" ] || unit_size=$((mem / 2)) + +. ./setup_hugetlb + +$USEMEM -n $nr_task -O -U $((unit_size / nr_task)) diff --git a/setup_hugetlb b/setup_hugetlb new file mode 100644 index 0000000..7567ed3 --- /dev/null +++ b/setup_hugetlb @@ -0,0 +1,4 @@ +nr_hp=$((unit_size/Hugepagesize/1024)) +# More memory to deal with unaligned size/offset +nr_hp=$((nr_hp + nr_task + 1)) +echo $nr_hp > /sys/kernel/mm/hugepages/hugepages-${Hugepagesize}kB/nr_overcommit_hugepages |