The get_phys_pages.3 man page reads:
These functions obtain the required information by scanning the MemTotal and MemFree fields of /proc/meminfo.
This is no longer the case. Since glibc 2.23, they use sysinfo(2) instead:
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=0ce657c576bf1b24 -- Jakub Wilk