Sys.Linux.Proc.Meminfo (Hyper v0.1.0)

Copy Markdown View Source

Reads memory totals from /proc/meminfo.

MemAvailable is the kernel's own estimate of memory obtainable for a new workload without swapping - the right figure for "how loaded is this node", preferable to MemFree (which ignores reclaimable cache). Values in the file are kibibytes; they are returned as Unit.Information.

Summary

Functions

Parse a /proc/meminfo payload.

Read and parse /proc/meminfo.

Functions

parse(content)

Parse a /proc/meminfo payload.

read()

@spec read() :: {:ok, Sys.Linux.Proc.Meminfo.Snapshot.t()} | {:error, File.posix()}

Read and parse /proc/meminfo.