Skip to content

Commit

Permalink
consider numa1
Browse files Browse the repository at this point in the history
  • Loading branch information
ramperher committed Nov 29, 2024
1 parent f6b48d1 commit 60fb1c3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions testpmd-container-app/cnfapp/scripts/testpmd-wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ for item in "${ETH_PEER_LIST[@]}"; do
done

SOCKET_MEM=${socket_mem:=1024}
# We are always assuming that testpmd is allocated in numa0 node, but if using numa1, SOCKET_MEM has to be reordered to specificy
# 0 memory for socket 0 and SOCKET_MEM memory for socket 1
NUMA_NODE=$(numactl --show | grep nodebind | awk '{print $2}')
if [ $NUMA_NODE -ne 0 ]; then
SOCKET_MEM="0,${SOCKET_MEM}"
fi
MEMORY_CHANNELS=${memory_channels:=4}
FORWARDING_CORES=${forwarding_cores:=2}
RXQ=${rx_queues:=1}
Expand Down

0 comments on commit 60fb1c3

Please sign in to comment.