aboutsummaryrefslogtreecommitdiffstats
path: root/case-mbind
blob: d67f56530cccc2a043f544a7628c5878bf9ce30d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

. ./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_task / 20))

# run it for each cpu in system
for i in $(seq $nr_task)
do
$USEMEM_MBIND  $PAGES &
done
wait