Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netmap potential optimizations #93

Closed
fklassen opened this issue Jul 8, 2014 · 1 comment
Closed

netmap potential optimizations #93

fklassen opened this issue Jul 8, 2014 · 1 comment
Assignees
Milestone

Comments

@fklassen
Copy link
Member

fklassen commented Jul 8, 2014

From pkt-gen source review it appears that sending a maximum of 1024 packets before calling poll helps with synchronization, and therefore improves performance. We should try this.

@fklassen fklassen added this to the 4.0.5 milestone Jul 8, 2014
@fklassen fklassen removed the 4.0.5 label Jul 23, 2014
@fklassen fklassen removed this from the 4.0.5 milestone Jul 28, 2014
@fklassen fklassen added this to the 4.1.1 milestone Dec 26, 2015
@fklassen fklassen self-assigned this Dec 26, 2015
fklassen added a commit that referenced this issue Dec 26, 2015
#93 send performance upgrades as per discussions with Luggi Rizzo
@fklassen
Copy link
Member Author

Enhancement as per PR #233

root@portwell28:~# ./tcpreplay -i netmap:eth7 -Kt --loop 30 bigFlows.pcap 
Switching network driver for eth7 to netmap bypass mode... done!
File Cache is enabled
Actual: 23748450 packets (10662533520 bytes) sent in 8.09 seconds.
Rated: 1186586900.0 Bps, 9492.69 Mbps, 2642861.55 pps
Flows: 40686 flows, 4527.76 fps, 23735370 flow packets, 13080 non-flow
Statistics for network device: eth7
    Attempted packets:         23748450
    Successful packets:        23748450
    Failed packets:            0
    Truncated packets:         0
    Retried packets (ENOBUFS): 0
    Retried packets (EAGAIN):  0
Switching network driver for eth7 to normal mode... done!
root@portwell28:~# ./tcpreplay -i netmap:eth7 -Kt --loop 30 smallFlows.pcap 
Switching network driver for eth7 to netmap bypass mode... done!
File Cache is enabled
Actual: 427830 packets (276495930 bytes) sent in 0.229833 seconds.
Rated: 1203029700.0 Bps, 9624.23 Mbps, 1861482.03 pps
Flows: 1209 flows, 5260.34 fps, 427290 flow packets, 540 non-flow
Statistics for network device: eth7
    Attempted packets:         427830
    Successful packets:        427830
    Failed packets:            0
    Truncated packets:         0
    Retried packets (ENOBUFS): 0
    Retried packets (EAGAIN):  0
Switching network driver for eth7 to normal mode... done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants