# 加载大页内存
echo 2048 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
mount -t hugetlbfs nodev /mnt/huge
# 加载vfio驱动
modprobe vfio-pci
/usr/bin/chmod a+x /dev/vfio
/usr/bin/chmod 0666 /dev/vfio/*
echo 1 > /sys/module/vfio/parameters/enable_unsafe_noiommu_mode
# 网卡转vfio
ifconfig ens37 down
/root/code/dpvs/dpdk-stable-20.11.1/usertools/dpdk-devbind.py -b vfio-pci 0000:02:05.0
# 启动dpvs
/root/code/dpvs/bin/dpvs &
标签:bin,初始化,code,vfio,hugepages,dpvs,chmod,节点 From: https://www.cnblogs.com/WJQ2017/p/17852615.html