tu: use os_get_total_physical_memory(..)
tu: use os_get_total_physical_memory(..)
This is more OS-agnostic. On Linux, os_get_total_physical_memory(..)
is based on __SC_PHYS_PAGES, which under the hood seems to call
sysinfo:
https://github.com/bminor/glibc/blob/master/sysdeps/unix/sysv/linux/getsysstats.c#L273
As an optimization, perhaps os_get_total_physical_memory(..)
should use sysinfo directly too.