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 performance slower on newer Linux kernels #528

Open
fklassen opened this issue Nov 10, 2018 · 0 comments
Open

Netmap performance slower on newer Linux kernels #528

fklassen opened this issue Nov 10, 2018 · 0 comments
Assignees
Labels
external bug bug in external library shelved Will not be addressed in foreseeable future

Comments

@fklassen
Copy link
Member

Notice slower performance when using netmap on newer Linux kernels (e.g. 4.14, 4.18 on 4.19), when compared to much older kernels (e.g. 3.10.33). This seems especially true on slower CPUs.

For example, Intel i7-3770 CPU @ 3.40GHz gets 9.760Gbps when replaying bigFlows.pcap at full speed in 3.10.33 kernel. On a 4.14 kernel, that drops to about 6Gbps.

This is most likely due to Spectre and Meltdown security fixes. By turning off Spectre V2 (via spectre_v2=off kernel option) I was able to see improvement from 6 to 8Gbps. But still don't see all the performance I got with 3.10.33.

Most likely we have to live with this issue until Intel starts releasing hardware that addresses these security issues.

@fklassen fklassen added bug shelved Will not be addressed in foreseeable future labels Nov 10, 2018
@fklassen fklassen self-assigned this Nov 10, 2018
fklassen added a commit that referenced this issue Nov 10, 2018
This fix will yield the CPU while netmap is waiting
for buffers.

On my test system, this improved performance by only
60Mbps, not the 4Gbps performance loss identified
by this bug. Therefore, this is not the final fix
for this bug.
fklassen added a commit that referenced this issue Nov 10, 2018
@fklassen fklassen added external bug bug in external library and removed bug labels Jun 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external bug bug in external library shelved Will not be addressed in foreseeable future
Projects
None yet
Development

No branches or pull requests

1 participant