White Papers

17
|
QAT Whitepaper
© 2019 Dell Inc. or its subsidiaries.
Configure Huge Pages for VPP
Contents of file: /etc/sysctl.d/80-vpp.conf
# Number of 2MB hugepages desired
#vm.nr_hugepages=1024
vm.nr_hugepages=4096
# Must be greater than or equal to (2 * vm.nr_hugepages).
#vm.max_map_count=3096
vm.max_map_count=9216
# All groups allowed to access hugepages
vm.hugetlb_shm_group=0
# Shared Memory Max must be greater or equal to the total size of hugepages.
# For 2MB pages, TotalHugepageSize = vm.nr_hugepages * 2 * 1024 * 1024
# If the existing kernel.shmmax setting (cat /sys/proc/kernel/shmmax)
# is greater than the calculated TotalHugepageSize then set this parameter
# to current shmmax value.
#kernel.shmmax=2147483648
kernel.shmmax=8589934592
Also use:
/etc/vpp/startup.conf
No changes were made to this file.
Contents of file: /etc/trex_cfg.yaml
### Config file generated by dpdk_setup_ports.py ###
- version: 2
interfaces: [‘3b:00.0’, ‘3b:00.1’]
port_info:
- ip: 10.10.2.2
default_gw: 10.10.2.1
- ip: 10.10.1.2
default_gw: 10.10.1.1
platform:
master_thread_id: 0
latency_thread_id: 1
dual_if:
- socket: 0
threads: [2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46]
This file was generated using:
cd /home/dell/trex-core/scripts
./dpdk_setup_ports.py -i
6.9 VPP Common Settings Huge Pages
6.10 Trex Configuration File