snapcast icon indicating copy to clipboard operation
snapcast copied to clipboard

[Feature Request][Bug] Mmaping the streamfile

Open LoPromise opened this issue 7 months ago • 0 comments

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.

LoPromise avatar Nov 07 '23 20:11 LoPromise