pub struct NFSOperationStat {
    pub operations: u64,
    pub transmissions: u64,
    pub major_timeouts: u64,
    pub bytes_sent: u64,
    pub bytes_recv: u64,
    pub cum_queue_time: Duration,
    pub cum_resp_time: Duration,
    pub cum_total_req_time: Duration,
}
Expand description

Represents NFS data from /proc/<pid>/mountstats under the section of per-op statistics.

Here is what the Kernel says about the attributes:

Regarding operations, transmissions and major_timeouts:

These counters give an idea about how many request transmissions are required, on average, to complete that particular procedure. Some procedures may require more than one transmission because the server is unresponsive, the client is retransmitting too aggressively, or the requests are large and the network is congested.

Regarding bytes_sent and bytes_recv:

These count how many bytes are sent and received for a given RPC procedure type. This indicates how much load a particular procedure is putting on the network. These counts include the RPC and ULP headers, and the request payload.

Regarding cum_queue_time, cum_resp_time and cum_total_req_time:

The length of time an RPC request waits in queue before transmission, the network + server latency of the request, and the total time the request spent from init to release are measured.

(source: include/linux/sunrpc/metrics.h struct rpc_iostats)

Fields§

§operations: u64

Count of rpc operations.

§transmissions: u64

Count of rpc transmissions

§major_timeouts: u64

Count of rpc major timeouts

§bytes_sent: u64

Count of bytes send. Does not only include the RPC payload but the RPC headers as well.

§bytes_recv: u64

Count of bytes received as bytes_sent.

§cum_queue_time: Duration

How long all requests have spend in the queue before being send.

§cum_resp_time: Duration

How long it took to get a response back.

§cum_total_req_time: Duration

How long all requests have taken from beeing queued to the point they where completely handled.

Trait Implementations§

source§

impl Clone for NFSOperationStat

source§

fn clone(&self) -> NFSOperationStat

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for NFSOperationStat

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for NFSOperationStat

source§

fn deserialize<__D>( __deserializer: __D ) -> Result<NFSOperationStat, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for NFSOperationStat

source§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,