Monday, August 25, 2014

DPDK playground

Compile DPDK library
make config T=x86_64-native-linuxapp-gcc
make config T=i686-native-linuxapp-gcc


/* With No Huge Page*/
build/app/testpmd -c f -n 1  -w 02:00.0 --no-huge


/* With Huge Page */
build/app/testpmd -c f -n 1  -w 02:00.0

To view the current setting using the /proc entry for huge page
# cat /proc/sys/vm/nr_hugepages 0

To set the number of huge pages using /proc entry:
# echo 5 > /proc/sys/vm/nr_hugepages

Mount hugetlbfs

#mount -t hugetlbfs nodev /mnt/huge/

Build Applications

make install T=x86_64-native-linuxapp-gcc

No comments:

Post a Comment