pub struct WriterStats {
pub bytes_acked: u64,
pub send_stall: Duration,
}Expand description
Point-in-time snapshot of the writer pipeline’s instrumentation counters.
These are the two signals the adaptive I/O controller samples per epoch
(see docs/features/ADAPTIVE_IO_PROFILES.md): how fast the writer threads
actually drain (bytes_acked) and how long the producer sat blocked
shipping chunks (send_stall). Near-zero stall combined with low
throughput means the input side is the bottleneck, so the write profile
must not react to it.
Fields§
§bytes_acked: u64Bytes actually written to output files: counted after each write(2)
returns (pre-fsync), not when chunks are enqueued or land in a
sink’s coalescing buffer — buffered bytes would measure RAM speed,
not the device. For compressed output this counts compressed bytes,
which is the right signal: it is the byte volume the device has to
absorb.
send_stall: DurationCumulative time the producer spent blocked on a full writer channel.
Trait Implementations§
Source§impl Clone for WriterStats
impl Clone for WriterStats
Source§fn clone(&self) -> WriterStats
fn clone(&self) -> WriterStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for WriterStats
Source§impl Debug for WriterStats
impl Debug for WriterStats
Source§impl Default for WriterStats
impl Default for WriterStats
Source§fn default() -> WriterStats
fn default() -> WriterStats
impl Eq for WriterStats
Source§impl PartialEq for WriterStats
impl PartialEq for WriterStats
impl StructuralPartialEq for WriterStats
Auto Trait Implementations§
impl Freeze for WriterStats
impl RefUnwindSafe for WriterStats
impl Send for WriterStats
impl Sync for WriterStats
impl Unpin for WriterStats
impl UnsafeUnpin for WriterStats
impl UnwindSafe for WriterStats
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more