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

[REQUEST] Convert the single threads operation in Virtual Switch to DPDK approach #1485

Open
Irene-123 opened this issue Dec 17, 2024 · 2 comments

Comments

@Irene-123
Copy link

Hi there,

I have went through the contribution guide and have a request to introduce DPDK or Linux Packet Buffer approach

Summary: The code in vslib/HostInterfaceInfo.cpp utilises read & write operations. This code essentially creates a separate thread for each switch port and does read() and write() of one packet at a time to copy packets from the virtual linux network interfaces and the virtual switch port TAP devices. This is very slow and adds a lot of latency.

Requirement/Reason: Low latency as read() write() operations create single new threads

Approach: Can I try to see if Linux Packet Buffer could be a more optimized approach or even DPDK (which is my target, as it's the fastest)?

I'm also new to the SONiC software & community around, would appreciate if I could get some direction or help :)
Also, apologies if any of my point above is incorrect, I have tried to frame the issue with the best of my knowledge

Thank you

@kcudnik
Copy link
Collaborator

kcudnik commented Dec 17, 2024

hey, i wrote that code, and this was by design, that traffic on port was intended only for control traffic, not actual dataplane transfer, but if you want to improve that you are very wellcome :)

@Irene-123
Copy link
Author

Sure, thank you, will keep the progress posted here

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

No branches or pull requests

2 participants