diff options
-rwxr-xr-x | case-anon-r-seq | 5 | ||||
-rwxr-xr-x | case-anon-r-seq-mt | 4 | ||||
-rwxr-xr-x | hw_vars | 7 |
3 files changed, 14 insertions, 2 deletions
diff --git a/case-anon-r-seq b/case-anon-r-seq index a72a3e3..1625d9a 100755 --- a/case-anon-r-seq +++ b/case-anon-r-seq @@ -2,4 +2,7 @@ source ./hw_vars -$USEMEM -n $nr_cpu --readonly $((ROTATE_BYTES / nr_cpu)) +size=$((PTE_LIMIT / nr_cpu)) +(( size > AS_LIMIT )) && size=$AS_LIMIT + +$USEMEM -n $nr_cpu --readonly $size diff --git a/case-anon-r-seq-mt b/case-anon-r-seq-mt index a131923..4c4f0ad 100755 --- a/case-anon-r-seq-mt +++ b/case-anon-r-seq-mt @@ -2,4 +2,6 @@ source ./hw_vars -$USEMEM -t $nr_cpu --readonly $((ROTATE_BYTES / nr_cpu)) +(( PTE_LIMIT > AS_LIMIT )) && PTE_LIMIT=$AS_LIMIT + +$USEMEM -t $nr_cpu --readonly $((PTE_LIMIT / nr_cpu)) @@ -122,3 +122,10 @@ mem=$((MemTotal << 10)) hugepagesize=$((Hugepagesize << 10)) ROTATE_BYTES=$((1<<42)) + +# Documentation/x86/x86_64/mm.txt +# 0000000000000000 - 00007fffffffffff (=47 bits) user space, different per mm +AS_LIMIT=$((1<<46)) + +PTE_LIMIT=$((mem << 8)) + |