I. test environment OS: Ubuntu12.04x86 _ 64dpdk version: 1.6.0r2 Virtual Machine: VMware10 NIC: intelconfiguration82545emgigabitethernetcontroller (Copper) (rev01) II. Test preparation: add four virtual NICs to Ubuntu12.04 using VMware, the default N value is selected when the network card is added.
I. Test Environment
Operating System: Ubuntu12.04 x86_64
Dpdk version: 1.6.0r2
Virtual Machine: VMware 10
NIC: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01)
2. Test preparation
Use VMware to add four virtual NICs to Ubuntu 12.04. The default NAT mode is selected during Nic addition.
-------------------------------------- Split line --------------------------------------
Hibernate http://www.linuxidc.com/Linux/2014-04/99294.htm for HelloWorld
Compiling Qt HelloWorld program http://www.linuxidc.com/Linux/2014-06/103671.htm on Ubuntu
HelloWorld http://www.linuxidc.com/Linux/2013-12/93634.htm for Tiny6410 kernel module Compilation
Using Pthreads for shared memory programming ---- HelloWorld http://www.linuxidc.com/Linux/2013-04/83103.htm
HelloWorld http://www.linuxidc.com/Linux/2012-12/75406.htm for Hadoop instances
HelloWorld (Windows) http://www.linuxidc.com/Linux/2012-05/60653.htm on Qt Creator for PlayBook
-------------------------------------- Split line --------------------------------------
Iii. Test process
1. Use setup. sh to test the testpmd program.
1) configure the environment variables RTE_SDK and RTE_TARGET
Decompress the dpdk file: tar-xf dpdk-1.6.0r2.tar.gz
Go to the decompressed Folder: cd dpdk-1.6.0r2
Set environment variables RTE_SDK and RTE_TARGET
Export RTE_SDK = 'pwd'
Export RTE_TARGET = x86_64-default-linuxapp-gcc
2) execute the setup. sh script
The setup. sh script is in the tools directory and runs the "./tools/setup. sh" command in the dpdk Directory, which may require the root permission.
The following code is a pop-up prompt, which can be selected in the order of steps.
Step 2: Disable eth0 and eth1, run sudo ifconfig eth0 down to disable eth0, and run sudo ifconfig eth1 down to disable eth1.
Step 1: Select the DPDK environment to build
----------------------------------------------------------
[1] i686-default-linuxapp-gcc
[2] i686-default-linuxapp-icc
[3] x86_64-default-bsdapp-gcc
[4] x86_64-default-linuxapp-gcc
[5] x86_64-default-linuxapp-icc
[6] x86_64-ivshmem-linuxapp-gcc
[7] x86_64-ivshmem-linuxapp-icc
----------------------------------------------------------
Step 2: Setup linuxapp environment
----------------------------------------------------------
[8] Insert igb uio module
[9] Insert KNI module
[10] Setup hugepage mappings for non-NUMA systems
[11] Setup hugepage mappings for NUMA systems
[12] Display current Ethernet device settings
[13] Bind Ethernet device to igb uio module
----------------------------------------------------------
Step 3: Run test application for linuxapp environment
----------------------------------------------------------
[14] Run test application ($ RTE_TARGET/app/test)
[15] Run testpmd application in interactive mode ($ RTE_TARGET/app/testpmd)
----------------------------------------------------------
Step 4: Other tools
----------------------------------------------------------
[16] List hugepage info from/proc/meminfo
----------------------------------------------------------
Step 5: Uninstall and system cleanup
----------------------------------------------------------
[17] Uninstall all targets
[18] Unbind slave from igb uio driver
[19] Remove igb uio module
[20] Remove KNI module
[21] Remove hugepage ings
[22] Exit Script
Option:
The following section describes the sequence selected in my tests.
Is the result of step 1
For more details, refer to the highlights on the next page.: Http://www.linuxidc.com/Linux/2014-09/106285p2.htm