On macOS the reported value of the total physical memory is 4096 times larger than the real value. According to the source code on macOS the sysctl -n hw.memsize call is used first. The result is multiplied with the page size of 4096. That multiplication is superfluous since sysctl -n hw.memsize already reports the total physical memory in bytes.
On macOS the reported value of the total physical memory is 4096 times larger than the real value. According to the source code on macOS the
sysctl -n hw.memsizecall is used first. The result is multiplied with the page size of 4096. That multiplication is superfluous sincesysctl -n hw.memsizealready reports the total physical memory in bytes.