首页 > 其他分享 >f-stack安装测试

f-stack安装测试

时间:2023-04-26 11:01:18浏览次数:43  
标签:测试 config hugepages usr install 安装 stack pkg

# clone F-Stack
mkdir -p /data/f-stack
git clone https://github.com/F-Stack/f-stack.git /data/f-stack

# Install libnuma-dev
yum install numactl-devel # on Centos
#sudo apt-get install libnuma-dev # on Ubuntu

pip3 install pyelftools --upgrade
# Install python and modules for running DPDK python scripts
pip3 install pyelftools --upgrade # RedHat/Centos
sudo apt install python # On ubuntu
#sudo pkg install python # On FreeBSD

# Install dependencies (FreeBSD only)
#pkg install meson pkgconf py38-pyelftools

cd f-stack
# Compile DPDK
cd dpdk/
meson -Denable_kmods=true build
ninja -C build
ninja -C build install

 

 

 meson编译报错, 找不到内核源码:
ERROR: Command "/usr/bin/make -sC /lib/modules/5.4.210-1.el7.elrepo.x86_64/build kernelversion" failed with status 2
  yum install kernel-devel-$(uname -r)
# Set hugepage (Linux only)
# single-node system
echo 1024 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages

# or NUMA (Linux only)
echo 1024 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
echo 1024 > /sys/devices/system/node/node1/hugepages/hugepages-2048kB/nr_hugepages

# Using Hugepage with the DPDK (Linux only)
mkdir /mnt/huge
mount -t hugetlbfs nodev /mnt/huge

# Close ASLR; it is necessary in multiple process (Linux only)
echo 0 > /proc/sys/kernel/randomize_va_space

# Offload NIC
# For Linux:
modprobe uio
insmod /data/f-stack/dpdk/build/kernel/linux/igb_uio/igb_uio.ko
insmod /data/f-stack/dpdk/build/kernel/linux/kni/rte_kni.ko carrier=on # carrier=on is necessary, otherwise need to be up `veth0` via `echo 1 > /sys/class/net/veth0/carrier`
python dpdk-devbind.py --status
ifconfig eth0 down
python dpdk-devbind.py --bind=igb_uio eth0 # assuming that use 10GE NIC and eth0

# For FreeBSD:
# Refer DPDK FreeBSD guide to set tunables in /boot/loader.conf
# Below is an example used for our testing machine
#echo "hw.nic_uio.bdfs=\"2:0:0\"" >> /boot/loader.conf
#echo "hw.contigmem.num_buffers=1" >> /boot/loader.conf
#echo "hw.contigmem.buffer_size=1073741824" >> /boot/loader.conf
#kldload contigmem
#kldload nic_uio

# On Ubuntu, use gawk instead of the default mawk.
#sudo apt-get install gawk # or execute `sudo update-alternatives --config awk` to choose gawk.

# Install dependencies for F-Stack
sudo apt install gcc make libssl-dev # On ubuntu
#sudo pkg install gcc gmake openssl pkgconf libepoll-shim # On FreeBSD

# Upgrade pkg-config while version < 0.28
#cd /data
#wget https://pkg-config.freedesktop.org/releases/pkg-config-0.29.2.tar.gz
#tar xzvf pkg-config-0.29.2.tar.gz
#cd pkg-config-0.29.2
#./configure --with-internal-glib
#make
#make install
#mv /usr/bin/pkg-config /usr/bin/pkg-config.bak
#ln -s /usr/local/bin/pkg-config /usr/bin/pkg-config

# Compile F-Stack
export FF_PATH=/data/f-stack
export PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/local/lib64/pkgconfig:/usr/lib/pkgconfig
cd /data/f-stack/lib/
make # On Linux
#gmake # On FreeBSD

# Install F-STACK
# libfstack.a will be installed to /usr/local/lib
# ff_*.h will be installed to /usr/local/include
# start.sh will be installed to /usr/local/bin/ff_start
# config.ini will be installed to /etc/f-stack.conf
make install # On Linux
#gmake install # On FreeBSD

 

标签:测试,config,hugepages,usr,install,安装,stack,pkg
From: https://www.cnblogs.com/phpall/p/17355006.html

相关文章

  • python安装pillow报错
    Fatalerrorinlauncher:Unabletocreateprocessusing'"D:\ProgramFiles\Python311\python.exe" "D:\ProgramFiles\Python311\Scripts\pip.exe"installpillow':??????????? 解决:cmd窗口执行32位:python3-mpipinstall--up......
  • windows禁止所有用户安装/卸载程序
    版本:windowsserver2012在开始-运行中输入gpedit.msc打开本地组策略编辑器打开如下路径计算机配置管理模版Windows组件WindowsInstaller在右侧找到“关闭WindowsInstaller”,修改为已启用在右侧找到“禁止用户安装”,修改为已启用。在网络查是需要重启生效的,待......
  • 不可见字符换行符引发的测试场景遗漏
    不可见(不可以被直接打印)字符有95;测试页面输入时,输入内容带有不可见字符;提交数据时,数据中包含了不可见字符;未过滤掉敏感词经常遇见的有空格、换行字符 ......
  • ASN.1 测试
    在openEuler(推荐)或Ubuntu或Windows(不推荐)中完成下面任务对你的8位学号(数字)进行der编码,写入1.der文件中对你的8位学号(文本)进行der编码,写入2.der文件中3,使用oepnssl命令分析上面两个der文件提交过程截图......
  • ASN.1 基础测试
    1参考https://www.cnblogs.com/rocedu/p/14891816.html#echo打印字符串和变量值2十六进制数:30030201AA,写入文件1.der,用od查看内容,用asn1view或opensslasn1pars命令查看内容,提交截图3十六进制数:3013020105160e416e79626f64792074686572653f,写......
  • 龙脉key sdf 测试
    在openEuler(推荐)或Ubuntu或Windows(不推荐)中完成下面任务使用key定义一个私有函数staticintgetRandom(char*r,intlength),获取length个字节的随机数(5‘)把上述函数集成到src中的sdf.c中的SDF_GenerateRandom中(5')在test中的main.c调用SDF_GenerateRandom进行测试,至少......
  • opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization e
    原因:node版本与openssl不兼容导致的初始化失败 解决:windows执行:setNODE_OPTIONS=--openssl-legacy-providermac执行:exportNODE_OPTIONS=--openssl-legacy-provider......
  • SpringBoot项目使用Junit进行单元测试
    SpringBoot项目使用Junit进行单元测试环境:Springboot2.6.7POM.xml文件添加如下内容:<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test</artifactId></dependency><dependency>&l......
  • jdg安装及环境设置
    1.下载java8java11到默认路径2.右击我的电脑,点击属性3.点击高级系统设置4.点击环境变量5.点击新建6.按照提示新建条目第一个变量名填入:JAVA_HOME变量值填入:.;%JAVA11_HOME%如图第二个变量名填入:JAVA11_HOME变量值填入:java11的下载地址如图第三个变量名填入:......
  • 铠侠 RC10 固态硬盘寿命暴力写入测试:1100pe 毫发无损
    一直很好奇固态硬盘的寿命有多久,从来也没有用坏过。怀着强烈的好奇心,开始了这一马拉松测试。直接对固态做暴力写入,一直到写坏为止看看到底写入量多少。从五月份到现在,断断续续写入。现在已经写入1100tb,还没有任何坏的迹象(保修是肯定没有了)。目前缓外写入400-500m/s,与新盘差不多没有......