Advantech FWA-T011 Getting Started Manual page 41

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

Advertisement

Step 2: Set the number of huge pages reserved for each CPU node. Default 1024 pages are
selected for NUMA node <NUMA node number>. Each huge page is 2MB (2048kB), and as
such 2GB (2MB*1024) huge page in total is reserved for DPDK.
# echo 1024 > /sys/devices/system/node/node<NUMA NODE
NUMBER>/hugepages/hugepages-2048kB/nr_hugepages
Step 3: Create a /mnt/huge directory and mount it as hugetlbfs
# mkdir -p /mnt/huge
# umount /mnt/huge
# grep '/mnt/huge' /proc/mounts
# mount -t hugetlbfs nodev /mnt/huge
Step 4: Make sure huge page is mounted already
# grep '/mnt/huge' /proc/mounts
nodev /mnt/huge hugetlbfs rw,relatime,pagesize=2M 0 0
Step 5: Find the PFA addresses of port 1 and port2. (ex. 01:00.0 or 02:00.0) (The following
command output is only an example)
#lseth
[2018.07.17 05:48:04] [INFO] lseth g4 (2015-11-18 14:12:08)
OS:Linux 4.15.0-23-generic x86_64
2018-07-17 05:48:04
Detect System Ethernet Device Number : 6
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
eth0_1 0000:01:00.0 c4:00:ad:a1:11:9a xx.xx.xx.xx
1000Mb/s
eth0_2 0000:02:00.0 c4:00:ad:a1:11:9b xx.xx.xx.xx
1000Mb/s
......< only parts of the messages are shown >.....
Step 6: Configure the NIC ports which will be managed by DPDK
# ip link set <PORT 1> down
# ip link set <PORT 2> down
# dpdk-devbind-atom-latest.py -b igb_uio <PORT 1 PFA>
# dpdk-devbind-atom-latest.py -b igb_uio <PORT 2 PFA>
The dpdk-devbind-atom-latest.py is a python script which is used by NIC driver to bind
corresponding Ethernet port. The parameter '-b' indicates that DPDK NIC dirver igb_uio is
bound to which Ethernet device. the driver is bound to eth0_1 (PFA 01:00.0) and eth0_2
(PFA 02:00.0)
Use the command 'dpdk-devbind-atom-latest.py --status' to check whether port 1 and port 2
had been managed by DPDK correctly:
# dpdk-devbind-atom-latest.py -s
Page 41
Copyright 2017. All rights reserved. Advantech Co. Ltd.

Advertisement

Table of Contents
loading

Table of Contents