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

Use inotify or similar to prevent 100% usage #5

Closed
Willenbrink opened this issue Apr 21, 2019 · 2 comments
Closed

Use inotify or similar to prevent 100% usage #5

Willenbrink opened this issue Apr 21, 2019 · 2 comments

Comments

@Willenbrink
Copy link
Owner

Currently the program loops over the file contents of the VCSA file, essentially busy-waiting for changes. This can be improved by using inotify and will also reduce the CPU-Usage.

@Willenbrink
Copy link
Owner Author

So Inotify does not work in a pseudo-fs. Unsurprisingly /dev is a pseudo-fs. So we must find a different method. Perhaps a small downtime of ~10ms when reading the file and no changes occurred?

@Willenbrink
Copy link
Owner Author

Cannot be resolved satisfyingly before #6 is resolved. Unix.sleepf is not included in OCaml 4.02.

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