建服务网站需要多少钱,遵义软件制作平台,手机软件开发用什么编程语言,网站备案费用多少下载 到官网上下载最新的spdk 代码。 解决编译依赖 yum install libaio.x86_64 libaio-devel.x86_64 编译dpdk 特别注意的是dpdk:依赖 /lib/modules/uname -a/build 下执行的内核已经存在#xff0c;并且编译过#xff0c;为此需要#xff1a; 下载内核#xff1b;安装依赖…下载 到官网上下载最新的spdk 代码。 解决编译依赖 yum install libaio.x86_64 libaio-devel.x86_64 编译dpdk 特别注意的是dpdk:依赖 /lib/modules/uname -a/build 下执行的内核已经存在并且编译过为此需要 下载内核安装依赖yum install ncurses.x86_64 ncurses-devel.x86_64 ncurses-libs.x86_64 ncurses-static.x86_64 ncurses-base.x86_64 ncurses-term.x86_64 ocaml-curses.x86_64yum install numactl-devel.x86_64 numad.x86_64 numactl.x86_64 make menuconfig make make modules make bzImage 注意用系统自带的gcc make menuconfig 才可以弹出界面 编译spdk 参考下面命令 ./configure --with-fio/home/xiaqichao/spdk/fio/fio --with-dpdk/home/xiaqichao/latestspdk/spdk/dpdk/x86_64-native-linuxapp-gcc --without-virtio --without-vhost
make;
echo EXTRA_CFLAGS-fPIC config/defconfig_x86_64-native-linuxapp-gcc echo make install Tx86_64-native-linuxapp-gcc DESTDIR.LINK examples/bdev/fio_plugin/fio_plugin
/home/opt/gcc-4.8.2.bpkg-r4/gcc-4.8.2.bpkg-r4/sbin/../lib/gcc/x86_64-baidu-linux-gnu/4.8.2/../../../../x86_64-baidu-linux-gnu/bin/ld.bfd: cannot find -lnuma
collect2: error: ld returned 1 exit status
make[3]: *** [fio_plugin] Error 1
make[2]: *** [fio_plugin] Error 2
make[1]: *** [bdev] Error 2
make: *** [examples] Error 2
[roots]# cd /
[roots]# find ./ -name libnuma*.so
./usr/lib64/libnuma.so
[roots]# cp ./usr/lib64/libnuma.so //home/opt/gcc-4.8.2.bpkg-r4/gcc-4.8.2.bpkg-r4/usr/lib
lib/ lib64/ libexec/
[roots]# cp ./usr/lib64/libnuma.so //home/opt/gcc-4.8.2.bpkg-r4/gcc-4.8.2.bpkg-r4/usr/lib64/ 可以通过下面的命令来解决上面的依赖yum install numactl-devel.x86_64 numad.x86_64 numactl.x86_64 然后重新编译即可。 hello world nvme 版本程序演示 [ DPDK EAL parameters: hello_world -c 0x1 --file-prefixspdk0 --base-virtaddr0x1000000000 --proc-typeauto ]
EAL: Detected 32 lcore(s)
EAL: Auto-detected process type: PRIMARY
Initializing NVMe Controllers
EAL: PCI device 0000:86:00.0 on NUMA socket 0
EAL: probe driver: 8086:a54 spdk_nvme
EAL: PCI device 0000:87:00.0 on NUMA socket 0
EAL: probe driver: 8086:a54 spdk_nvme
EAL: PCI device 0000:88:00.0 on NUMA socket 0
EAL: probe driver: 8086:a54 spdk_nvme
EAL: PCI device 0000:89:00.0 on NUMA socket 0
EAL: probe driver: 8086:a54 spdk_nvme
EAL: PCI device 0000:af:00.0 on NUMA socket 0
EAL: probe driver: 8086:a54 spdk_nvme
EAL: PCI device 0000:b0:00.0 on NUMA socket 0
EAL: probe driver: 8086:a54 spdk_nvme
EAL: PCI device 0000:b1:00.0 on NUMA socket 0
EAL: probe driver: 8086:a54 spdk_nvme
Attaching to 0000:b1:00.0
EAL: PCI device 0000:b2:00.0 on NUMA socket 0
EAL: probe driver: 8086:a54 spdk_nvme
Attached to 0000:b1:00.0
Using controller INTEL SSDPE2KX040T7 (BTLF82140KK74P0IGN ) with 1 namespaces.Namespace ID: 1 size: 4000GB
Initialization complete.
Hello world!
nvme_ctrlr.c: 473:nvme_ctrlr_shutdown: *ERROR*: did not shutdown within 5 seconds转载于:https://blog.51cto.com/xiamachao/2386347