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

Sharable Mempool between processes #221

Open
KeithWiles opened this issue Oct 20, 2022 · 0 comments
Open

Sharable Mempool between processes #221

KeithWiles opened this issue Oct 20, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@KeithWiles
Copy link
Contributor

KeithWiles commented Oct 20, 2022

Difficulty: Hard

Modify CNDP mempool code to allow multiple processes to share a single mempool across processes. CNDP is a single process model application type and we need to be able to share buffers between processes without needing to share the entire process memory space which is what DPDK does today.

Sharing memory between processes is normally done with mmap() API to create a sharable region of memory. When sharing memory between processes you can not assume the virtual address of the memory space is the same between processes. That means memory pointers are not allowed in the shared memory region. This means the pointer currently being used need to be convert to offsets into the memory region.

The implementation should rely on Linux IPC and existing shared memory infrastructure wherever possible.

It should be possible to send and receive packets using AF_XDP sockets which use a shared UMEM between two or more processes.

@KeithWiles KeithWiles added enhancement New feature or request hackathon Possible enhancements for the Hackathon labels Oct 20, 2022
@KeithWiles KeithWiles removed the hackathon Possible enhancements for the Hackathon label Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant