According to the NSProcessInfo docs, -physicalMemory
returns the "amount of physical memory in bytes.". However, on my 32 GB iPhone 5, it returns 1065000960
, which is only around 1 GB (1016 MB). What's up with that? Does it actually return the number of blocks or something? Could this be a bug in the API?
FWIW, I get the same value using sysctl()
.