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:
Will give you various RAM information you can ask for right from the command prompt.
Gives you the serial number. You can also use
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.
Speccy is a Windows software that will tell you many many things about your computer including RAM type/size/total slots/available slots.
To complement ultrasawblade's answer, on Linux, to decode the SPD data, you can use the
Or for the HTML fancy formatted one:
(w3m being a text based browser/pager). Or of course:
On many Linux distributions (e.g. Debian), you can use the lshw hardware lister
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.
or download it from the project website.
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.
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)
protected by slhck♦ Mar 29 '13 at 9:51
Thank you for your interest in this question.
Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?