Posts Tagged ‘HW_PHYSMEM’

Has Apple Quietly Dropped the iPhone 4 to 256MB?

Apple does not publish in depth technical details of its iOS devices. Necessitating developers to root around in system files to find out specifics on the silicon inside by themselves. Asking Apple to confirm which specific GPU is inside an iPhone for example, or exactly how much RAM it has on board is likely to get a standard reply with no technical insight whatsoever.

Often it is web-sites likeĀ iFixit (and their “partners in crime”) who break the first details on the silicon inside Apple’s iDevices. At other times it is developers who filter the information out to us all, once they have got their hands on new hardware, and can run low level c functions to snoop at physical memory, or other more esoteric OS components.

One very good reason why Apple might obfuscate detailed hardware info is simply so that they can revise specifications in the future. As long as those changes in specifications don’t damage the end user experience, break existing apps, or undermine developers efforts, then there really is no harm in it. It happens all the time with consoles and handhelds as the manufacturing of components matures over a products lifetime.

A few iPhone 4 users are reporting that some system snooping apps are reporting their devices as only having 256MB of Physical RAM. These are later device models, purchased recently and running a current public version of iOS. Original iPhone 4s, such as mine, running iOS 4.2 still report 512MB of Physical RAM.

In every day use I rarely see my iPhone 4 drop below 200 – 240MB of free RAM. And I wonder if Apple has noticed the same.

So I am curious. Has Apple quietly dropped the iPhone 4′s specs to 256MB of Physical RAM? Or is something else going on here?

#include <sys/types.h>
#include <sys/sysctl.h>

static size_t phys_mem()
 int mib[] = { CTL_HW, HW_PHYSMEM };
 size_t mem;
 size_t len = sizeof(mem);
 sysctl(mib, 2, &mem, &len, NULL, 0);
 return mem;

What does this code report for you on your iPhone 4?

Posted: November 7th, 2010
Categories: Apple, Technical Specs, iphone
Tags: , , ,
Comments: View Comments.
Get Adobe Flash playerPlugin by wordpress themes