Figure 28: The 'Dpdk-Devbind-Atom-Latest.py -S' Command - Advantech FWA-T011 Getting Started Manual

Quickstart linux image
Hide thumbs Also See for FWA-T011:
Table of Contents

Advertisement

Figure 28: The 'dpdk-devbind-atom-latest.py -s' Command

Use the 'dpdk-devbind-atom-latest.py --help' command to get more detailed usage.
Step 7: Make a soft link to current folder as running binary pktgen-dpdk-wr-atom-latest
requires this link
# ln -sf /root/bin/Pktgen-atom-latest.lua `pwd`/Pktgen.lua
Step 8: Start Pktgen program
# pktgen-dpdk-wr-atom-latest --master-lcore <ID> -c < COREMASK > -n <CHANNELS > -w <
PORT 1 PFA > -w < PORT 2 PFA > --socket-mem=<MEM SIZE> --file-prefix=dpdk_pktgen -- -P -
T -m <MATRIX >
Considering the command above is relatively complicate we use a dual Cpu sockets platform
as an example,
# pktgen-dpdk-wr-atom-latest --master-lcore 1 -c 00000003 -n 3 -w 01:00.0 -w 02:00.0 --
socket-mem=512 --file-prefix=dpdk_pktgen -- -P -T -m '[0].0,[0].1'
Parameters setting:
th
--master-lcore 1: The 2
Pktgen master process
-c 0000003: CPU cores ID 0 is dedicated for Rx and Tx on Port 0 (port 1) respectively.
CPU cores ID 0 is dedicated for Rx and Tx on Port 1 (port 2) respectively.
Thus CPU core ID 1 is used by Pktgen master process.
-n 3: memory channels = 3
-w 01:00.0 -w 02:00.0: i.e. PFA of port 1 and port 2
--socket-mem=512: If the CPU cores using are in NUMA node0,the parameter should be "-
-socket-mem=512" ,else if the CPU cores using are in NUMA node1,
the parameter should be "--socket-mem=0,512"
-m '[0].0,[0].1': The logical CPU core (ID 0) handles port 0 Rx & Tx
The logical CPU core (ID 0) handles port 1 Rx & Tx
If the program runs successfully, users shall end up with Pktgen CLI:
Copyright 2017. All rights reserved. Advantech Co. Ltd.
logical CPU core (CPU ID 1) in NUMA node0 is selected for running
Page 42

Advertisement

Table of Contents
loading

Table of Contents