Function procfs::vmstat

source ·
pub fn vmstat() -> ProcResult<HashMap<String, i64>>
Expand description

Get various virtual memory statistics

Since the exact set of statistics will vary from kernel to kernel, and because most of them are not well documented, this function returns a HashMap instead of a struct. Consult the kernel source code for more details of this data.

This data is taken from the /proc/vmstat file.

(since Linux 2.6.0)