Function numa_gpu::runtime::linux_wrapper::numa_mem_info
source · [−]pub fn numa_mem_info(node_id: u16) -> Result<NumaMemInfo>
Expand description
Returns the memory information of a NUMA node
Read the memory information provided by Linux at
/sys/devices/system/node/nodeX/meminfo
.
Example
let node_id = 0;
let NumaMemInfo{total, free, ..} = linux_wrapper::numa_mem_info(node_id)?;
println!("total: {} free: {}", total, free);