Skip to main content

host_ram

Function host_ram 

Source
fn host_ram() -> Option<usize>
Expand description

Linux: parse MemAvailable from /proc/meminfo (kB → bytes). macOS: read total host RAM via sysctl hw.memsize.