baidu / dperf

dperf is a 100Gbps network load tester.
https://dperf.org
Apache License 2.0
4.93k stars 509 forks source link

config file error "Error: insufficient sockets. worker=0 sockets=1 cps's cc=37500" #351

Closed owenstake closed 1 year ago

owenstake commented 1 year ago

Error occurs in my conf file, what it means ?

[root@localhost] dperf -c client-nat.conf
Error: insufficient sockets. worker=0 sockets=1 cps's cc=37500

[root@localhost] cat client-nat.conf
# ====== vxlan client ================
mode            client
cpu             32-47
tx_burst        128
launch_num      16
payload_size    1
socket_mem      3072,3072
duration        10m
cps             300k
#port           pci             addr       gateway
port            0000:02:00.0    10.0.0.11  10.0.0.1

#vxlan          vni             inner-smac          inner-dmac          vtep-local  num vtep-remote num
vxlan           1000            bc:16:95:44:f9:3d   bc:16:95:45:00:b7   10.0.0.11   16   10.0.0.1   1

#               addr_start      num
client          1.1.1.128       1
#               addr_start      num
server          1.1.1.1         16
#               port_start      num
listen          80              1
pengjianzhang commented 1 year ago

your target "cps 300k" is so high, but your ip addresses and ports is not enough.

please try:

  1. cps 10k

or

  1. listen 80 100

owenstake commented 1 year ago

@pengjianzhang now Error message "Error: insufficient sockets. worker=0 sockets=1 cps's cc=62"

dperf -c client-nat.conf

mode            client
cpu             1-32
socket_mem      10240,0
tx_burst        32
launch_num      10
payload_size    1
duration        10m
cps             1k
#port           pci             addr            gateway(ovs-vtep)       outer-dmac(ovs-vtep)
port            0000:02:00.0    10.0.0.2        10.0.0.1                8c:2a:8e:55:73:ff
#port           0000:02:00.0    10.0.0.2        10.0.0.1

#vxlan          vni             inner-smac          inner-dmac          vtep-local  num vtep-remote(ovs)        num
vxlan           1000            00:11:22:33:44:55   8c:2a:8e:55:73:97   10.0.0.2    32   10.0.0.1               1

#       addr_start      num
client  1.1.1.1         1
server  2.2.2.2         32
listen  80              1
pengjianzhang commented 1 year ago

fixed thanks

owenstake commented 1 year ago

fixed thanks

unfortunatelly, this problem still exists.

owenstake commented 1 year ago

fixed thanks

unfortunatelly, this problem still exists.

it works now !