🐞 fix:TSG-21742 内置Performance Benchmark工具开启后一直重启

This commit is contained in:
linxin
2024-07-08 18:55:18 +08:00
parent cb266a49b2
commit 8989607e81

View File

@@ -51,10 +51,8 @@ cat << EOF > /etc/trex_cfg.yaml
dual_if:
EOF
socket_id=0
for numa_node in "${!NUMA[@]}"; do
threads=${NUMA[$numa_node]%,}
echo " - socket: $socket_id" >> /etc/trex_cfg.yaml
echo " - socket: $numa_node" >> /etc/trex_cfg.yaml
echo " threads: [${threads// /,}]" >> /etc/trex_cfg.yaml
((socket_id++))
done