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?

  • 6
    Note: I've removed the comments as they weren't going anywhere. You can use Super User Chat for discussing. – slhck Mar 28 '13 at 14:32
  • @Celeritas: I've rolled back your latest edit. Asking why a developer/manufacturer chose to add or omit a feature from their product is not constructive. – Karan Mar 29 '13 at 6:09
  • @Karan I was wondering if the Mac hardware or OS is somehow different than the hardware Windows runs on that makes it easier to determine the type of RAM. It seems like a useful feature to be built into the OS so that people know what kind of RAM to get if they want to upgrade. You can edit the question to reflect what I just told you but reword it so it fits better. – Celeritas Mar 29 '13 at 7:24
  • 1
    Since you've already asked whether it's possible to do it on Windows and have received answers telling you how, it's clear there's no fundamental hardware difference that prevents Windows from displaying the info if it wants (SPD data as you've seen below is stored on the RAM module, and is accessible to any OS/app that cares to read it). Beyond this there's no point really in discussing why exactly MS choose not to do so, even if it's useful for end users. – Karan Mar 29 '13 at 7:54
  • i2c bus is a standard that any OS can interface with. The SPD presents itself as a 128-byte, 256-byte or 512-byte EEPROM. The OS just needs to collect these bytes, which obey another standard called JEDEC, from the EEPROM using i2c and then use that data to figure out what kind of memory it is talking about. It's very OS agnostic. – LawrenceC Apr 9 '13 at 23:29

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: e

  • 2
    In Linux, dmidecode --type memory lets you see some of the information. Apparently it can output a manufacturer and serial number, but at least on my system those are reported as simply ManufacturerN and SerNumN with N being what appears to be the slot number. – user Mar 27 '13 at 20:22
  • 2
    I thought dmidecode parsed something that the BIOS puts together on boot. The BIOS should read the SPD and report accordingly - buggy BIOSes are nothing new though. – LawrenceC Mar 27 '13 at 20:30
  • 1
    +1 for the only answer that mentions SPD – Jonathon Reinhart Mar 28 '13 at 7:17
  • 1
    It seems to me that there used to be a time when RAM sticks didn't have SPD chips... At least I clearly remember reviewing price lists for RAM where items were clearly marked as SPD and non-SPD (it was approximately at a time of introducing DIMM standard) – Mikhail Mar 29 '13 at 6:04
  • 1
    @Mikhail yes, SIMMs had 4 pins for "presense detect" - these were pulled high or low to provide an identifier indicating size and speed. ohlandl.ipv7.net/config/mempresence.html – ali1234 Mar 31 '13 at 3:52

On Windows:

wmic memoryChip get /?

Will give you various RAM information you can ask for right from the command prompt.

For example,

wmic memorychip get serialnumber

Gives you the serial number. You can also use Speed, Model sometimes, 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.

  • 3
    Note that WMI is able to query DMI/SMBus information but is not the Windows implementation thereof. Additionally, dmidecode which purely queries and decodes DMI information is available as a Windows port too. – syneticon-dj Mar 28 '13 at 8:20
  • @syneticon-dj I am not sure you added anything here and your point is unclear. WMI is Windows Management Instrumentation, among its capabilties and duties is reading SMBUS. But if your point was all anorks are bnorks but not all bnorks are anorks... then yes, exactly...? – Austin T French Mar 28 '13 at 11:22
  • My point is that your wording is inaccurate to the point where it gets easy to misunderstand. WMI can interface with SMBIOS but it is not in any respect its implementation (which resides on the hardware / BIOS side and not within the OS). – syneticon-dj Mar 28 '13 at 11:42
  • It does say: "WMI is Windows implementation of SMBus standard for reading devices." And it is Windows way of reading / querying and knowing what is inside... But WMI also does a lot more. – Austin T French Mar 28 '13 at 11:49
  • 2
    @syneticon-dj - make an edit if it's wrong. – Enigma Mar 28 '13 at 19:03

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)

System Report with Memory


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.

  • FYI, lshw is not available on OS X: – slhck Mar 27 '13 at 19:51
  • @b.long kneejerk reaction because the question is tagged win/osx but not Linux? – Dan Is Fiddling By Firelight Mar 27 '13 at 19:54
  • Indeed, sorry about that - I didn't read the entire question (or title apparently). I thought it was asking about any OS – blong Mar 27 '13 at 19:57
  • @slhck My bad, I just did a quick google search for OSX lshw and saw this post on the apple website and I assumed it existed for OSX without actually reading the post in question. (blush). Anyway, my point here was that if Linux can see the RAM type why shouldn't OSX? – terdon Mar 27 '13 at 19:58

On Mac OS X run from terminal:

$ system_profiler SPMemoryDataType
  • This is great! Do you know if there is anyway to get the RAM timings on macOS? CL - RCD - RP - RAS & RC? I can find this in Windows (Boot Camp) with a number of programs, including HWiNFO64, CPU-Z and others, but I nothing for Apple. Thanks! – bafromca Aug 13 '20 at 17:24

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.

  • 3
    It's called SPD -- Serial Presence Detect. – David Schwartz Mar 27 '13 at 19:14
  • The first sentence doesn't make much sense. – user Mar 27 '13 at 20:24
  • 2
    What about it doesn't make sense? Makes sense to me, and that's the first complaint I've gotten. – MarcusJ Mar 28 '13 at 5:40

To complement ultrasawblade's answer, on Linux, to decode the SPD data, you can use the decode-dimms perl script from the i2c-tools:

sudo modprobe -a i2c-i801 eeprom

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.

  • 3
    I used to use CPU-Z to get such info on Windows machines - it gives you very detailed info on CPU, RAM & even more. It's small & neat & being updated regularly. – Mikhail Mar 29 '13 at 6:22

Not the answer you're looking for? Browse other questions tagged or ask your own question.