Giter Club home page Giter Club logo

Comments (7)

pengjianzhang avatar pengjianzhang commented on May 18, 2024

set current connections and set packet size.
for example:
if i set 1Mpps and every packet size is 1400bytes, theTPS is 11.2Gbps.

cps 100
cc 1000
keepalive 1ms
packet_size 1400

from dperf.

ygm521 avatar ygm521 commented on May 18, 2024

good! thanks!

from dperf.

pengjianzhang avatar pengjianzhang commented on May 18, 2024

coule u please support dperf with a star, thanks.

from dperf.

ygm521 avatar ygm521 commented on May 18, 2024

is right?thanks!

example

33.242--udp-->33.241,22.121--udp-->192.168.22.211

cat test/udp/client.conf


mode                        client
protocol                    udp

cpu                         0 1
payload_size                1400
duration                    60s

cps                         100        
cc                          100
keepalive                   1ms

#port                       pci             addr         gateway
port                        0000:06:00.1    192.168.33.242   192.168.33.241

#                           addr_start      num
client                      192.168.33.242     1

#                           addr_start      num
server                      192.168.22.211      1

#                           port_start      num
listen                      80              1

cat test/udp/server.conf

mode            server
protocol        udp

keepalive       1s
payload_size    64

cpu             0 1

duration        10m

#port           pci             addr         gateway
port            0000:09:00.0    192.168.22.211   192.168.22.121

#               addr_start      num
client          192.168.22.121      1

#               addr_start      num
server          192.168.22.211      1

#               port_start      num
listen          80              1

from dperf.

pengjianzhang avatar pengjianzhang commented on May 18, 2024

if you use 2 cpus, please use 2 server ips
example:
server 192.168.22.211 2

from dperf.

ygm521 avatar ygm521 commented on May 18, 2024

if i use 2 cpus, how to understand the config num?what's the meaning?

#               addr_start      num
client          192.168.22.121      1

from dperf.

pengjianzhang avatar pengjianzhang commented on May 18, 2024

'num' is the total ip address numbers starting from 'addr_start'
client 192.168.1.2 4 -> 192.168.1.2, 192.168.1.3 192.168.1.4, 192.168.1.5

client first-ip num

https://github.com/baidu/dperf/blob/main/docs/configuration-CN.md
https://github.com/baidu/dperf/blob/main/docs/configuration.md

from dperf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.