pub enum IOPriorityClass {
IoprioClassRt,
IoprioClassBe,
IoprioClassIdle,
}
Expand description
IOPriorityClass represents an I/O scheduling class.
Variants§
IoprioClassRt
This is the realtime io class. This scheduling class is given higher priority than any other in the system, processes from this class are given first access to the disk every time. Thus it needs to be used with some care, one io RT process can starve the entire system. Within the RT class, there are 8 levels of class data that determine exactly how much time this process needs the disk for on each service. In the future this might change to be more directly mappable to performance, by passing in a wanted data rate instead
IoprioClassBe
This is the best-effort scheduling class, which is the default for any process that hasn’t set a specific io priority. The class data determines how much io bandwidth the process will get, it’s directly mappable to the cpu nice levels just more coarsely implemented. 0 is the highest BE prio level, 7 is the lowest. The mapping between cpu nice level and io nice level is determined as: io_nice = (cpu_nice + 20) / 5.
IoprioClassIdle
This is the idle scheduling class, processes running at this level only get io time when no one else needs the disk. The idle class has no class data, since it doesn’t really apply here.
Trait Implementations§
Source§impl Clone for IOPriorityClass
impl Clone for IOPriorityClass
Source§fn clone(&self) -> IOPriorityClass
fn clone(&self) -> IOPriorityClass
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more