diff options
-rw-r--r-- | case-mbind | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/case-mbind b/case-mbind new file mode 100644 index 0000000..3e7ad37 --- /dev/null +++ b/case-mbind @@ -0,0 +1,17 @@ +#!/bin/bash + +source ./hw_vars + +# usemem_mbind fails randomly. subsequent runs succeed. --have to fix that +USEMEM_MBIND=./usemem_mbind + +# Allocate pages to scale with available free memory +PAGES=$((MemFree / nr_cpu / 20)) + +# run it for each cpu in system +for i in $(seq $nr_cpu) +do +$USEMEM_MBIND $PAGES & +done +wait + |