I wonder how this is correct in the era of THP. At least it will overestimate the actual memory consumption, but generally it depends on system settings such as available number of huge pages.