20. Ability to use external memory test plan¶
20.1. Description:¶
Provide an abstraction for DPDK hugepage allocation, to have a “default” memory allocator that will allocate hugepages, but also have custom allocator support for external memory.
20.2. Test case 1: IGB_UIO and anonymous memory allocation¶
Bind the ports to IGB_UIO driver
Start testpmd with –mp-alloc=xmem flag:
./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- --mp-alloc=xmem -i
Start forward in testpmd
Start send traffic from outside to test the forward function
20.3. Test case 2: IGB_UIO and anonymous hugepage memory allocation¶
Bind the ports to IGB_UIO driver
Start testpmd with –mp-alloc=xmemhuge flag:
./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- --mp-alloc=xmemhuge -i
Start forward in testpmd
Start send traffic from outside to test the forward function
20.4. Test case 3: VFIO and anonymous memory allocation¶
Bind the ports to vfio-pci driver
Start testpmd with –mp-alloc=xmem flag:
./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- --mp-alloc=xmem -i
Start forward in testpmd
Start send traffic from outside to test the forward function
20.5. Test case 4: VFIO and anonymous hugepage memory allocation¶
Bind the ports to vfio-pci driver
Start testpmd with –mp-alloc=xmemhuge flag:
./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -- --mp-alloc=xmemhuge -i
Start forward in testpmd
Start send traffic from outside to test the forward function