MeadowlarkDAW / creek

Realtime disk streaming IO for audio
Other
112 stars 12 forks source link

set thread ionice to IOPRIO_CLASS_RT on Linux #8

Open Be-ing opened 2 years ago

Be-ing commented 2 years ago

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 commented 2 years ago

So what is the issue here?

Be-ing commented 2 years ago

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 commented 8 months ago

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

abique commented 8 months ago

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