Comments (32)
谢谢,我用kni暂时解决了这个问题
from dperf.
谢谢,看起来可以运行,我晚上测试下dpvs性能看看
from dperf.
要考虑到超时重传,大概要超好几倍,端口再多配些
from dperf.
加油
from dperf.
驱动正确安装了么
from dperf.
MLX CX4是支持的
from dperf.
mlx需要加载 modprobe mlx5_ib
参考下
https://zhuanlan.zhihu.com/p/451340043
https://zhuanlan.zhihu.com/p/484252751
from dperf.
编译DPDK时打开MLX开关了么
from dperf.
已加载那个模块
lsmod | grep mlx5_ib
mlx5_ib
请教下MLX开关是啥
from dperf.
修改config/common_base,打开编译开关
CONFIG_RTE_LIBRTE_MLX5_PMD=y
from dperf.
没开,我试下,谢谢
from dperf.
不客气,能给项目加个star吗
也请您帮忙宣传一下dperf项目: https://mp.weixin.qq.com/s/46l09oszc8Z19cZuk9ry9g
谢谢
from dperf.
加star了,请教下,我重新编译后,为啥一起动dperf,进程就退出了
./build/dperf -c test/http/server-cps.conf
EAL: Detected 64 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: PCI device 0000:5e:00.0 on NUMA socket 0
EAL: probe driver: 15b3:1015 net_mlx5
socket allocation succeeded, size 0.99GB num 16645890
Get gateway's MAC address successfully
Connection to xxx.xxx.xxx.xxx closed by remote host.
from dperf.
开启了 daemon模式么
from dperf.
看起来ARP正常工作了
from dperf.
你是不是只有一个网卡? 或者 地址冲突了,抢占了管理口?
dperf运行时,这个网口不能再ssh
from dperf.
是的 只有一个管理网卡
from dperf.
两个方法:
- 给网卡配VF,dperf运行在vf上 (推荐)
- 使用KNI特性,dperf生成虚拟网卡,用于管理,需要使用main分支。这个主要是用来做动态路由的,也可以用来做管理。
from dperf.
hello,我用dperf做客户端 ,nginx做服务端的时候发现,如果挥手的时候nginx率先发送fin包,dperf回的fin+ack包好像有问题(确认序列号没有加一),导致nginx没有正常关闭连接,重传了第一个fin包,dperf的统计tcpdrop大量增加。我不太懂,不确定是不是这个问题?
from dperf.
谢谢。
应该是一个Bug。
我也发现dperf与curl配合FIN重传了,可能是同一个问题。
请用dperf客户端 配合dperf 服务器测试。
dperf要求服务器的HTTP响应在一个报文内,如果HTTP响应较大,nginx会把响应放在多个报文中,不满足dperf的要求。
from dperf.
ok,服务端我需要监听多个端口,我dperf配置
listen 80 5
后,dperf就无法正常启动了
from dperf.
是不是大页配少了,内存不够了
from dperf.
应该不是,配置两个监听的时候还有40多G的大页内存,配三个监听进程就中断了,用的kni
from dperf.
请把配置贴一下,出错信息贴下,谢谢
from dperf.
mode server
cpu 0
duration 10m
port 0000:5e:00.0 xxx.xxx.xxx.92 xxx.xxx.xxx.65
client xxx.xxx.xxx.1 254
server xxx.xxx.xxx.92 1
kni
listen 80 3
现象和我之前没配kni的现象一样,ssh断开连接了
./build/dperf -c test/http/server-cps.conf
EAL: Detected 64 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'PA'
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: PCI device 0000:5e:00.0 on NUMA socket 0
EAL: probe driver: 15b3:1015 net_mlx5
socket allocation succeeded, size 2.98GB num 49937670
Connection to xxx.xxx.xxx.92 closed by remote host.
from dperf.
你需要给kni接口配置ip,路由
=====配置文件====
daemon
kni vnic
mode server
cpu 0 1 2 3
#tx_burst 128
#launch_num 10
#payload_size 1
keepalive
duration 10d
#jumbo
packet_size 1000
#cps 2m
#port pci addr gateway
====启动脚本====
modprobe uio
insmod /root/dpdk/dpdk-stable-19.11.10/x86_64-native-linuxapp-gcc/kmod/igb_uio.ko
insmod /root/dpdk/dpdk-stable-19.11.10/x86_64-native-linuxapp-gcc/kmod/rte_kni.ko carrier=on
DEVBIND=/root/dpdk/dpdk-stable-19.11.10/usertools/dpdk-devbind.py
MOD=igb_uio
ifconfig xgbe0 down
ifconfig xgbe1 down
PF0=0000:81:00.0
PF1=0000:81:00.1
$DEVBIND -b $MOD $PF0
$DEVBIND -b $MOD $PF1
DPERF=/root/dperf/build/dperf
$DPERF -c /root/t.conf
sleep 10
ip addr > 1.txt
function add_ip()
{
KNI=$1
ip addr add x.x.x.x/26 dev $KNI
route add default gw x.x.x.1
}
add_ip vnic0
from dperf.
你用的是mlx网卡,用vf吧
echo 1 > /sys/class/net/xgbe0/device/sriov_numvfs
from dperf.
我配置daemon参数,会报这个问题/var/log/dperf not exist?
from dperf.
请创建这个目录
from dperf.
请教下client的cps配置成1m,启动报错:
./build/dperf -c test/http/client-cps.conf
Error: insufficient sockets. worker=0 sockets=1310700 cps's cc=2000000
from dperf.
地址配少了,达不到这个目标,要多配一些client ip,我一般client 配100个ip
from dperf.
没有条件配置client ip数量,我配置了20个监听端口,算起来已经可以超过1m了啊
from dperf.
Related Issues (20)
- 如何在一定的并发和PPS基础上,加大流量 HOT 1
- 请问是否支持在同一设备上同时跑客户端与服务端? HOT 2
- dperf是否支持让一个网口往多个地址发包 HOT 1
- Can dperf return large responses? HOT 13
- dperf make error on ubuntu 22.4 HOT 18
- dpdk18.11版本编译dperf 1.1.0以上版本报错 HOT 1
- Who is using dperf?
- dperf测试LVS吞吐性能时,没有产生流量 HOT 2
- 使用dperf作为客户端测试nginx性能
- dperf test throughput HOT 1
- dperf 支持https http2 http3 性能测试吗 HOT 1
- v1.6.0 及之后的版本 TCP 连接无法正确释放 HOT 3
- Mellanox网卡,在启动dperf报port init fail dpdk init fail HOT 1
- server端运行dperf,client端ping不通
- 所有连接都被tcpDrop了 HOT 1
- dperf 可以实现在多port情况下,收包和发包分别用不同port 吗? HOT 7
- dperf运行出错提示: work space init error HOT 10
- 请问jzperf与dperf有什么区别? HOT 1
- 新建连接数测试统计结果解读 HOT 1
- 如何使用 dperf测试高并发 CC 场景,并使用 post 请求,附带 payload HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dperf.