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

set thread ionice to IOPRIO_CLASS_RT on Linux #8

Open
Be-ing opened this issue Jan 21, 2022 · 4 comments
Open

set thread ionice to IOPRIO_CLASS_RT on Linux #8

Be-ing opened this issue Jan 21, 2022 · 4 comments

Comments

@Be-ing
Copy link
Collaborator

Be-ing commented Jan 21, 2022

https://www.kernel.org/doc/html/latest/block/ioprio.html#scheduling-classes

Unfortunately it seems there isn't currently a way to set a thread's ionice with Rust.

@BillyDM
Copy link

BillyDM commented Jan 21, 2022

So what is the issue here?

@Be-ing
Copy link
Collaborator Author

Be-ing commented Jan 22, 2022

The issue is that the kernel has a feature that could be used to give creek's reader thread priority access to the storage device but this is not being taken advantage of currently.

@abique
Copy link

abique commented Jan 21, 2024

If you buffer enough you may not need it, but yes io nice can be interesting for disk access when you seek maybe.

@abique
Copy link

abique commented Jan 21, 2024

Though, setting it to RT may not necessarily be a win.

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

3 participants