亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb

首頁 > 學院 > 操作系統 > 正文

DPDK helloworld

2024-06-28 13:27:10
字體:
來源:轉載
供稿:網友
DPDK helloworld

環境搭建:

手頭沒有intel的板子,暫時只能用虛擬機代替;

image

虛擬機的CPU數量不能超過真實的機器,因此暫時無法模擬出NUMA的環境;

dpdk需要至少兩塊網卡,eth0和eth1用于dpdk使用,eth2用于跟主機通信;

打開虛擬機的配置文件, xxx.vmx,把所有網卡都設置成e1000

ethernet0.PResent = "TRUE"ethernet0.connectionType = "hostonly"ethernet0.wakeOnPcktRcv = "FALSE"ethernet0.addressType = "static"ethernet0.virtualDev = "e1000"ethernet1.present = "TRUE"ethernet1.connectionType = "hostonly"ethernet1.wakeOnPcktRcv = "FALSE"ethernet1.addressType = "static"ethernet1.virtualDev = "e1000"ethernet2.present = "TRUE"ethernet2.connectionType = "nat"ethernet2.wakeOnPcktRcv = "FALSE"ethernet2.addressType = "static"ethernet2.virtualDev = "e1000"

下載dpdk源碼

git clone git://dpdk.org/dpdk

設置環境變量

export RTE_SDK=/root/dpdkexport RTE_TARGET=i686-default-linuxapp-gccexport EXTRA_CFLAGS="-O0 -g"

由于是32位機器,設置target為i686;更多target可以參考intel-dpdk-getting-started-guide

其中EXTRA_CFLAGS把編譯優化去掉,并加上調試信息;

編譯代碼

make config T=i686-default-linuxapp-gccmake install T=i686-default-linuxapp-gccmake -C i686-default-linuxapp-gccmake -C examples/helloworld

預留hugepage個數,并掛載

echo 128 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepagesmount -t hugetlbfs nodev /mnt/huge

加載uio和igb_uio

modprobe uioinsmod ./build/kmod/igb_uio.ko

綁定設備

./tools/igb_uio_bind.py --bind=igb_uio eth0./tools/igb_uio_bind.py --bind=igb_uio eth1

如果需要解綁定,后面的bus:slot.func各種設備不一樣

./tools/igb_uio_bind.py --unbind 02:01.0./tools/igb_uio_bind.py --unbind 02:02.0./tools/igb_uio_bind.py --bind=e1000 02:01.0./tools/igb_uio_bind.py --bind=e1000 02:02.0

最后就可以運行helloworld

root@bogon:~/dpdk# ./examples/helloworld/build/helloworld -c 0xf -n 2EAL: Cannot read numa node link for lcore 0 - using physical package id insteadEAL: Detected lcore 0 as core 0 on socket 0EAL: Cannot read numa node link for lcore 1 - using physical package id insteadEAL: Detected lcore 1 as core 1 on socket 0EAL: Cannot read numa node link for lcore 2 - using physical package id insteadEAL: Detected lcore 2 as core 0 on socket 1EAL: Cannot read numa node link for lcore 3 - using physical package id insteadEAL: Detected lcore 3 as core 1 on socket 1EAL: Skip lcore 4 (not detected)EAL: Skip lcore 5 (not detected)EAL: Skip lcore 6 (not detected)EAL: Skip lcore 7 (not detected)EAL: Skip lcore 8 (not detected)EAL: Skip lcore 9 (not detected)EAL: Skip lcore 10 (not detected)EAL: Skip lcore 11 (not detected)EAL: Skip lcore 12 (not detected)EAL: Skip lcore 13 (not detected)EAL: Skip lcore 14 (not detected)EAL: Skip lcore 15 (not detected)EAL: Skip lcore 16 (not detected)EAL: Skip lcore 17 (not detected)EAL: Skip lcore 18 (not detected)EAL: Skip lcore 19 (not detected)EAL: Skip lcore 20 (not detected)EAL: Skip lcore 21 (not detected)EAL: Skip lcore 22 (not detected)EAL: Skip lcore 23 (not detected)EAL: Skip lcore 24 (not detected)EAL: Skip lcore 25 (not detected)EAL: Skip lcore 26 (not detected)EAL: Skip lcore 27 (not detected)EAL: Skip lcore 28 (not detected)EAL: Skip lcore 29 (not detected)EAL: Skip lcore 30 (not detected)EAL: Skip lcore 31 (not detected)EAL: Skip lcore 32 (not detected)EAL: Skip lcore 33 (not detected)EAL: Skip lcore 34 (not detected)EAL: Skip lcore 35 (not detected)EAL: Skip lcore 36 (not detected)EAL: Skip lcore 37 (not detected)EAL: Skip lcore 38 (not detected)EAL: Skip lcore 39 (not detected)EAL: Skip lcore 40 (not detected)EAL: Skip lcore 41 (not detected)EAL: Skip lcore 42 (not detected)EAL: Skip lcore 43 (not detected)EAL: Skip lcore 44 (not detected)EAL: Skip lcore 45 (not detected)EAL: Skip lcore 46 (not detected)EAL: Skip lcore 47 (not detected)EAL: Skip lcore 48 (not detected)EAL: Skip lcore 49 (not detected)EAL: Skip lcore 50 (not detected)EAL: Skip lcore 51 (not detected)EAL: Skip lcore 52 (not detected)EAL: Skip lcore 53 (not detected)EAL: Skip lcore 54 (not detected)EAL: Skip lcore 55 (not detected)EAL: Skip lcore 56 (not detected)EAL: Skip lcore 57 (not detected)EAL: Skip lcore 58 (not detected)EAL: Skip lcore 59 (not detected)EAL: Skip lcore 60 (not detected)EAL: Skip lcore 61 (not detected)EAL: Skip lcore 62 (not detected)EAL: Skip lcore 63 (not detected)EAL: Setting up memory...EAL: cannot open /proc/self/numa_maps, consider that all memory is in socket_id 0EAL: Ask a virtual area of 0xe800000 bytesEAL: Virtual area found at 0xa8400000 (size = 0xe800000)EAL: Ask a virtual area of 0x200000 bytesEAL: Virtual area found at 0xa8000000 (size = 0x200000)EAL: Ask a virtual area of 0x400000 bytesEAL: Virtual area found at 0xa7a00000 (size = 0x400000)EAL: Ask a virtual area of 0x200000 bytesEAL: Virtual area found at 0xa7600000 (size = 0x200000)EAL: Ask a virtual area of 0xc00000 bytesEAL: Virtual area found at 0xa6800000 (size = 0xc00000)EAL: Ask a virtual area of 0x200000 bytesEAL: Virtual area found at 0xa6400000 (size = 0x200000)EAL: Ask a virtual area of 0x200000 bytesEAL: Virtual area found at 0xa6000000 (size = 0x200000)EAL: Requesting 128 pages of size 2MB from socket 0EAL: TSC frequency is ~2660068 KHzEAL: Master core 0 is ready (tid=b7599800)EAL: Core 1 is ready (tid=a5fffb40)EAL: Core 2 is ready (tid=a57feb40)EAL: Core 3 is ready (tid=a4ffdb40)hello from core 1hello from core 3hello from core 2hello from core 0

后面就可以用gdb調試了


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb
成人福利在线观看| 欧美大尺度电影在线观看| 亚洲伊人一本大道中文字幕| 亚洲黄色在线看| 国产精品久久婷婷六月丁香| 色婷婷久久av| 尤物99国产成人精品视频| 色偷偷9999www| 亚洲男人天堂久| 国产激情综合五月久久| 国产在线播放91| 午夜免费久久久久| 日韩av一区二区在线观看| 久久精品国产精品亚洲| 国产精品久久久久久久久粉嫩av| 欧美极品xxxx| 日韩中文在线观看| 亚洲精品一区在线观看香蕉| 欧洲中文字幕国产精品| 亚洲男人天堂网站| 国产69久久精品成人| 欧美国产在线视频| 亚洲成色777777在线观看影院| 国产精品久久久久久亚洲调教| 亚洲男人天堂2024| 欧美理论片在线观看| 美女精品久久久| 国产精品成人一区| 国产日韩欧美日韩| 精品久久久一区二区| 国产91热爆ts人妖在线| 亚洲第一免费播放区| 亚洲国产91色在线| 欧美精品一二区| 亚洲国产成人久久综合一区| 久久久国产一区二区| 亚洲自拍欧美色图| 日韩av不卡电影| 国产精品h在线观看| 欧美激情高清视频| 欧美孕妇毛茸茸xxxx| 欧美日韩成人精品| 国产精品美女网站| 久久久精品久久久| 日韩在线视频一区| 一区二区亚洲欧洲国产日韩| 91av国产在线| 欧美午夜激情视频| 国产精品久久一区| 欧美精品免费在线观看| 欧美亚洲在线视频| 欧美激情中文网| 97精品免费视频| 欧美一级bbbbb性bbbb喷潮片| 久久久久久噜噜噜久久久精品| 俺去啦;欧美日韩| 欧美一区二区三区免费观看| 亚洲精品丝袜日韩| 亚洲欧美中文字幕在线一区| 欧美成人精品在线视频| 日韩在线视频中文字幕| 国产日韩精品在线| 亚洲精品乱码久久久久久金桔影视| 亚洲国产精彩中文乱码av| 欧美电影在线观看网站| 日韩精品免费在线视频观看| 姬川优奈aav一区二区| 亚洲电影免费在线观看| 狠狠色狠狠色综合日日五| 国产丝袜视频一区| 亚洲xxxxx电影| 欧美裸身视频免费观看| 深夜福利91大全| 国产91精品网站| 色悠久久久久综合先锋影音下载| 91精品美女在线| 奇米一区二区三区四区久久| 色狠狠av一区二区三区香蕉蜜桃| 国产综合在线视频| 欧亚精品在线观看| 影音先锋日韩有码| 国产ts一区二区| 成人网欧美在线视频| 国产精品扒开腿做| 日韩一级黄色av| 成人在线免费观看视视频| 国产精品三级在线| 欧美中文字幕精品| 日韩女优在线播放| 日韩av电影在线播放| 欧洲成人性视频| 亚洲va码欧洲m码| 国产精品大片wwwwww| 亚洲一区二区中文字幕| 国产经典一区二区| 亚洲成人精品视频在线观看| 久久91亚洲人成电影网站| 亚洲精品视频免费| 精品国产一区二区在线| 91亚洲精华国产精华| 中文字幕精品影院| 日韩在线免费视频| 欧美成在线视频| 日韩av在线天堂网| 亚洲视频在线看| 色婷婷**av毛片一区| 91产国在线观看动作片喷水| 欧美一区二区三区……| 亚洲经典中文字幕| 久久亚洲私人国产精品va| 国产日韩精品视频| 亚洲欧美一区二区精品久久久| 久久久亚洲欧洲日产国码aⅴ| 久久精品视频99| 欧美国产精品va在线观看| 欧美一级淫片播放口| 色yeye香蕉凹凸一区二区av| 久久精品视频一| 亚洲欧美激情一区| 久久免费观看视频| 色婷婷av一区二区三区久久| 欧美性20hd另类| 欧美噜噜久久久xxx| 欧美成人在线网站| 日韩精品中文字幕久久臀| 国产精品久久久久av免费| 97成人精品区在线播放| 久久久天堂国产精品女人| 久久影院在线观看| 91精品在线观看视频| 性色av一区二区三区| 欧美国产日韩一区二区三区| 国产精品久久久久久久午夜| 亚洲人精选亚洲人成在线| 日韩免费看的电影电视剧大全| 国产日本欧美视频| 国产精品高潮呻吟久久av黑人| 午夜精品三级视频福利| 欧美日韩视频免费播放| 亚洲欧美激情另类校园| 欧美精品videossex88| 欧美高清视频在线播放| 色综合影院在线| 亚洲天堂av在线播放| 亚洲激情成人网| 综合欧美国产视频二区| 免费不卡在线观看av| 欧美理论电影网| 成人国内精品久久久久一区| 久久精彩免费视频| 91久久精品在线| 久久久综合av| 久久综合免费视频影院| 亚洲大胆人体在线| 亚洲精品免费在线视频| 久久91亚洲人成电影网站| 97涩涩爰在线观看亚洲| 国产精品99免视看9| 国产成人精品在线观看| 精品日本高清在线播放| 亚洲午夜精品久久久久久久久久久久| 国产日韩欧美在线观看| 日韩av在线网页| 国产精品久久久久久久久粉嫩av|