/usr/bin/run_perftest_loopback is in perftest 3.0+0.16.gb2f2e82-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #!/bin/sh
# trivial script to launch a loopback test on the same device
# example: run_perftest_loopback 0 1 ib_write_bw -s 10
if [ $# -lt 3 ] ; then
echo ""
echo "Usage: run_perftest_loopback <server_core> <client_core> <test command>"
echo "example: run_perftest_loopback 0 1 ib_write_bw -s 10"
exit 3
fi
server_core=$1
client_core=$2
shift 2
taskset -c $server_core $* &
#give server time to start
sleep 1
taskset -c $client_core $* localhost
status=$?
wait
exit $status
|