other
基本配置
编译
export RTE_SDK=`pwd`
export RTE_TARGET=x86_64-native-linuxapp-gcc
make config install T=$RTE_TARGET DESTDIR=$RTE_SDK
大页
echo 1024 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
检查是否挂载
# cat /proc/mounts | grep hugetlbfs
hugetlbfs /dev/hugepages hugetlbfs rw,seclabel,relatime,pagesize=2M 0 0
meminfo检查大页
# cat /proc/meminfo | grep HugePages_
HugePages_Total: 1024
HugePages_Free: 1024
HugePages_Rsvd: 0
HugePages_Surp: 0
禁用(ASLR)
# Disable Address-Space Layout Randomization (ASLR)
echo 0 > /proc/sys/kernel/randomize_va_space