pub struct DriverStats {
pub waits: u64,
pub recv_calls: u64,
pub send_calls: u64,
pub accept_calls: u64,
pub other_calls: u64,
pub sqes: u64,
pub os_events: u64,
pub sleeps: u64,
pub spin_polls: u64,
}Expand description
System calls and events counted by a driver (plain counters; read them on the loop thread).
Fields§
§waits: u64Waits: epoll_wait, kevent, io_uring_enter, GetQueuedCompletionStatusEx.
recv_calls: u64Receive calls: recv, recvmmsg, WSARecv/WSARecvMsg (io_uring: none, completions only).
send_calls: u64Send calls: sendmsg/send, WSASend (io_uring: none, submissions only).
accept_calls: u64Accept calls: accept4, AcceptEx.
other_calls: u64Other system calls: registration, epoll_ctl, eventfd reads, io_uring_register, …
sqes: u64io_uring submission queue entries pushed (buffer hand-overs with PROVIDE_BUFFERS not
counted).
os_events: u64Completions or readiness events taken from the OS.
sleeps: u64Waits that blocked (put the thread to sleep, or could have: a non-zero timeout).
spin_polls: u64Non-blocking polls made while busy polling (also counted in waits when they were system
calls; io_uring polls its rings in user space and enters only when work is flagged).