How can Mac OS X tell what kind of RAM is in the machine? For example I was working on one that had DDR3 RAM @ 1600MHz and I thought it wasn't possible to know the RAM without physically opening the case and looking at it.How can this be done on other systems?
RAM sticks have a small chip on them called the Serial Presence Detect, which contains information such as capacity, preferred timings, manufacturer, and even a serial number.
SPD information is accessible by OSes using the i2c bus (which also includes things like temperature sensors). I think you can directly read the SPDs from Linux using various i2c utilities.
This image from the Wikipedia article has a good picture of it:
wmic memoryChip get /?
Will give you various RAM information you can ask for right from the command prompt.
wmic memorychip get serialnumber
Gives you the serial number. You can also use
Manufacturer and more.
WMI is the Windows method of querying SMBIOS data. Apple, Linux, Windows and anyone else who wants to run on most hardware made needs to support SMBIOS at some level, for different reasons.
You can use SMBIOS (e.g. through WMI or WMIC in Windows) to also gather hard drive information, network information (is it a 10/100 or 10/100/1000 card?).
To take it one step further, every manufacturer has a code for MAC addresses on NICs. RAM also has a manufacturers code. So all you have to do to get their code, for example my 2 x2GB in this laptop are 830B, is build a database for the manufacturers (830B might be one brand and then resold too!) and also what models mean what. That is how CPUz works I believe—basic queries and a really complete and current database.
The memory speed and type is negotiated with the bios and can be read by the operating system.
There is a very good website giving you a deeper level of understanding about these things at http://www.computermemoryupgrade.net/index1.html
But you can easily figure out which types and speed you have without opening the cover via:
Apple -> About This Mac -> More Info -> System Report
Open Hardware -> Memory
You should see each stick of RAM including Size, Type and Speed (and for fun, Status to make sure it's ok)
On many Linux distributions (e.g. Debian), you can use the lshw hardware lister
sudo lshw |grep DDR description: SODIMM DDR3 Synchronous 1067 MHz (0.9 ns) description: SODIMM DDR3 Synchronous 1067 MHz (0.9 ns)
I guess that RAM, like all other hardware, reports its description and capabilities to the OS. If Linux can do it, I see no reason why OSX can't.
If your distribution doesn't have lshw installed, you can install it using your package manager, e.g.
aptitude install lshw
or download it from the project website.
On Mac OS X run from terminal:
$ system_profiler SPMemoryDataType
The RAM stick stores its timing, speed, and type on a little chip on the stick. How does your computer know how fast to run the RAM without corrupting its data? Same chip. Apple simply chooses to display this data as well.
To complement ultrasawblade's answer, on Linux, to decode the SPD data, you can use the
perl script from the i2c-tools:
sudo modprobe -a i2c-i801 eeprom decode-dimms
Or for the HTML fancy formatted one:
decode-dimms -f | w3m -T text/html
(w3m being a text based browser/pager). Or of course:
decode-dimms -f > dimms.html xdg-open dimms.html
Speccy is a Windows software that will tell you many many things about your computer including RAM type/size/total slots/available slots.
protected by slhck Mar 29 '13 at 9:51
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?