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
@spec parse(String.t()) :: Sys.Linux.Proc.Meminfo.Snapshot.t()
Parse a /proc/meminfo payload.
@spec read() :: {:ok, Sys.Linux.Proc.Meminfo.Snapshot.t()} | {:error, File.posix()}
Read and parse /proc/meminfo.