1 Star 0 Fork 0

derekwin/perftest

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
run_perftest_loopback 622 Bytes
一键复制 编辑 原始数据 按行查看 历史
Tzafrir Cohen 提交于 2024-04-09 12:45 +08:00 . Fix syntax of script run_perftest_loopback
#!/bin/sh
# trivial script to launch a loopback test on the same device
# example: run_perftest_loopback 0 1 ib_write_bw -s 10
os_type=$(uname)
if [ "$os_type" = "FreeBSD" ]; then
cpu_bind_cmd="cpuset -l"
else
cpu_bind_cmd="taskset -c"
fi
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
$cpu_bind_cmd $server_core "$@" &
#give server time to start
sleep 1
$cpu_bind_cmd $client_core "$@" localhost
status=$?
wait
exit $status
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/derekwin/perftest.git
git@gitee.com:derekwin/perftest.git
derekwin
perftest
perftest
master

搜索帮助