ulong getPhysicalMemory()
Gets physical memory size using sysctl.
Example:
auto mem = getPhysicalMemory(); writeln("Total memory: ", mem, " bytes");