pub enum ProcessStrategy {
KeepRunning,
CudaSuspend,
Checkpoint,
Stop,
}Expand description
What to do with the OS process after weight strategy is applied.
This is one axis of the eviction policy. The other is WeightStrategy.
Variants§
KeepRunning
Process stays alive, CUDA context active.
CudaSuspend
cuda-checkpoint: suspend CUDA context, free remaining VRAM. Process stays alive in host RAM.
Checkpoint
CRIU: snapshot to disk, process killed. Frees everything.
Stop
Kill process. Cold start on next use.
Trait Implementations§
Source§impl Clone for ProcessStrategy
impl Clone for ProcessStrategy
Source§fn clone(&self) -> ProcessStrategy
fn clone(&self) -> ProcessStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcessStrategy
impl Debug for ProcessStrategy
Source§impl<'de> Deserialize<'de> for ProcessStrategy
impl<'de> Deserialize<'de> for ProcessStrategy
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProcessStrategy
impl PartialEq for ProcessStrategy
Source§impl Serialize for ProcessStrategy
impl Serialize for ProcessStrategy
impl Copy for ProcessStrategy
impl Eq for ProcessStrategy
impl StructuralPartialEq for ProcessStrategy
Auto Trait Implementations§
impl Freeze for ProcessStrategy
impl RefUnwindSafe for ProcessStrategy
impl Send for ProcessStrategy
impl Sync for ProcessStrategy
impl Unpin for ProcessStrategy
impl UnsafeUnpin for ProcessStrategy
impl UnwindSafe for ProcessStrategy
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.