|
Packit |
d740b4 |
#!/bin/sh
|
|
Packit |
d740b4 |
# run the Linux Test Project with various numactl settings. will run for a few hours.
|
|
Packit |
d740b4 |
# must run as root
|
|
Packit |
d740b4 |
# You can download LTP from http://ltp.sourceforge.net
|
|
Packit |
d740b4 |
# Change LTP below to the source directory of a compiled LTP distribution
|
|
Packit |
d740b4 |
|
|
Packit |
d740b4 |
LTP=/src/ltp
|
|
Packit |
d740b4 |
LEN=2h
|
|
Packit |
d740b4 |
|
|
Packit |
d740b4 |
LTPOPT="-q -p -t $LEN"
|
|
Packit |
d740b4 |
export PATH=`pwd`/..:$PATH
|
|
Packit |
d740b4 |
|
|
Packit |
d740b4 |
cd $LTP
|
|
Packit |
d740b4 |
for i in 1 2 3 ; do
|
|
Packit |
d740b4 |
numactl --interleave=all ./runltp $LTPOPT -l n.interleave.all.$i
|
|
Packit |
d740b4 |
numactl --interleave=0,1 ./runltp $LTPOPT -l n.interleave.01.$i
|
|
Packit |
d740b4 |
numactl --preferred=0 --cpubind=1 ./runltp $LTPOPT -l n.preferred.$i
|
|
Packit |
d740b4 |
# the VM test that allocates all memory may fail
|
|
Packit |
d740b4 |
numactl --membind=1 --cpubind=0 ./runltp $LTPOPT -l n.membind1.$i
|
|
Packit |
d740b4 |
numactl --membind=0,1 ./runltp $LTPOPT -l n.membind01.$i
|
|
Packit |
d740b4 |
done
|