Documentation
¶
Overview ¶
Package hostmem reads the memory of the machine this process runs on, as the kernel reports it to this process: its total and what is available. It reads /proc/meminfo only; on a system without it every read is an error, never zero.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
Memory is the machine's memory as /proc/meminfo reports it, in bytes.
func ParseMeminfo ¶
ParseMeminfo reads MemTotal and MemAvailable from a meminfo listing. Both must be present: a kernel without MemAvailable (older than 3.14) gives no honest figure for what is free.
Click to show internal directories.
Click to hide internal directories.