Enum oci_spec::runtime::IOPriorityClass
source · 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 moresource§impl Debug for IOPriorityClass
impl Debug for IOPriorityClass
source§impl Default for IOPriorityClass
impl Default for IOPriorityClass
source§impl<'de> Deserialize<'de> for IOPriorityClass
impl<'de> Deserialize<'de> for IOPriorityClass
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Display for IOPriorityClass
impl Display for IOPriorityClass
source§impl FromStr for IOPriorityClass
impl FromStr for IOPriorityClass
source§impl PartialEq for IOPriorityClass
impl PartialEq for IOPriorityClass
source§fn eq(&self, other: &IOPriorityClass) -> bool
fn eq(&self, other: &IOPriorityClass) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for IOPriorityClass
impl Serialize for IOPriorityClass
source§impl TryFrom<&str> for IOPriorityClass
impl TryFrom<&str> for IOPriorityClass
impl Copy for IOPriorityClass
impl Eq for IOPriorityClass
impl StructuralPartialEq for IOPriorityClass
Auto Trait Implementations§
impl Freeze for IOPriorityClass
impl RefUnwindSafe for IOPriorityClass
impl Send for IOPriorityClass
impl Sync for IOPriorityClass
impl Unpin for IOPriorityClass
impl UnwindSafe for IOPriorityClass
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)