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

avoid swapping memory #39

Open
albertz opened this issue Apr 19, 2013 · 1 comment
Open

avoid swapping memory #39

albertz opened this issue Apr 19, 2013 · 1 comment

Comments

@albertz
Copy link
Owner

albertz commented Apr 19, 2013

E.g. the player buffer. And the player struct. Maybe other stuff. So that readOutStream will never need to wait for swapped-out memory.

A simple/hacky cross platform solution would be to frequently (or after certain events) force a read on all important data.

To force the data to not-be-swapped-out, there is mlock and co on Linux, BSDs and MacOSX.

@albertz albertz reopened this Apr 22, 2013
@albertz
Copy link
Owner Author

albertz commented Apr 22, 2013

Doesn't really work that well. Still hiccups after sleep. Indicates that it still does swap-out.

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

1 participant