Pktgen === ###### tags: `Telecom` `QCT` `DPDK` `5G` ## HW Information ### NIC | Interface | MAC | PCI Addr |VLAN | | -------- | -------- | -------- | -------- | | enp28s0f0 | 3c:fd:fe:a9:e5:00 | 0000:1c:00.0 | 480 | | enp28s0f1 | 3c:fd:fe:a9:e5:01 | 0000:1c:00.1 | 480 | ### NUMA ``` $ cat /sys/class/net/enp61s0f0/device/numa_node 0 $ lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 88 On-line CPU(s) list: 0-87 Thread(s) per core: 2 Core(s) per socket: 22 Socket(s): 2 NUMA node(s): 2 Vendor ID: GenuineIntel CPU family: 6 Model: 85 Model name: Intel(R) Xeon(R) Gold 6152 CPU @ 2.10GHz Stepping: 4 CPU MHz: 1000.816 BogoMIPS: 4200.00 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 1024K L3 cache: 30976K NUMA node0 CPU(s): 0-21,44-65 NUMA node1 CPU(s): 22-43,66-87 ``` ## Prerequisite * Install Lua ``` $ wget https://www.lua.org/ftp/lua-5.3.5.tar.gz $ tar zxvf lua-5.3.5.tar.gz $ make linux $ make test $ make install ``` * [DPDK Setup Script](https://doc.dpdk.org/guides/linux_gsg/index.htm) - [ ] Insert IGB-UIO module - [ ] Setup hugepage mappings for NUMA systems - [ ] Bind Ethernet device to IGB UIO module :::info setup hugepage 寫入 ```/sys/devices/system/node/node0或1/hugepages/hugepages-2048kB/nr_hugepages```,但重新開機後會失效。 ::: ## Installation * [Getting Started with Pktgen](https://pktgen-dpdk.readthedocs.io/en/latest/getting_started.html) :::info * sysctl - 用作檢視及修改執行中的Kernel參數,然而重新開機後便會失效,而只要將寫入/etc/sysctl.conf則可在開機時自動載入Kernel參數。 * /etc/fstab - [開機時會主動讀取/etc/fstab,並配置掛載磁碟](http://icodding.blogspot.com/2015/09/linux-etcfstab.html?m=1)。 * ```ls /dev/hugepages | wc -l``` = HugePages_Total - HugePages_Free ::: ## Commands ``` Pktgen:/> start all Pktgen:/> set 0 rate 10 Pktgen:/> set 0 count 1000000 Pktgen:/> page pcap Pktgen:/> page main ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up