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

[Feature Request][Bug] Mmaping the streamfile #1176

Open
LoPromise opened this issue Nov 7, 2023 · 0 comments
Open

[Feature Request][Bug] Mmaping the streamfile #1176

LoPromise opened this issue Nov 7, 2023 · 0 comments

Comments

@LoPromise
Copy link

Is your feature request related to a problem? Please describe.
Hey i just found the Reason for random lost pakages and the reason for it.
Apperently the /tmp dictonary is not nesseserly mapped to memory. this means the stream file could get swapped to disk. fixing this could be accieved by telling linux to not swap the file to disk.

Since Im running in a Proxmox VM theres another layer to this don't know if qemu-client tools would pass the memory Mapping to host. therefore i disabled the swap on host. Seperate Problem i know...

Describe the solution you'd like
after opening the filestream to /tmp you could use mmap() to make sure the reserved Memory isnt randomly swapped. dont know if theres a C++ way of doing this but seeing the massive Amount of pepole reporting random skips this could help. they are gone in my setup now.

More than willing to work with you on this. its late so I'm not setting up the project today... so when reading this i might have already pushed a fix for this.

If you need more details feel free to ask.

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

1 participant