RAM is the short-term memory of your computer. It’s where your computer keeps track of the programs and data you’re using right now. You probably already know that more RAM is better, so maybe you’re looking to install more RAM now.
Shopping for RAM can be super confusing, though. What’s the difference between DDR3 and DDR4? DIMM and SO-DIMM? What’s the difference between DDR3-1600 and PC3-12800? Are latency and timing important?
In this article, we explain the different kinds of RAM and what distinguishes them.
A Crash Course on RAM
RAM acts as a middle ground between the small, super-fast cache in your CPU and the large, super-slow storage of your hard drive or SSD. It’s used to temporarily store working parts of the operating system and data being actively used by applications. It’s not used for permanent storage.
If you think of your computer like an office, the hard drive is the filing cabinet in the corner, the RAM is like an entire office workstation, and the CPU cache is like the actual working area where you’re actively work on a document.
The more RAM you have, the more things you can have quick access to at any one time, just like having a bigger desk which can have more bits of paper on it without becoming messy and unwieldy (and requiring more trips back to the filing cabinet to reorganize).
Unlike an office desk, however, RAM can’t act as permanent storage. Its contents are lost as soon as power is lost, such as when you turn your computer off. Losing power is like wiping the workstation clean.
RAM Usually Means SDRAM
Synchronous Dynamic RAM (SDRAM) is typically what people mean when they’re talking about RAM for computers, and it’s what we mean when we discuss RAM in the rest of this article. For most desktops and laptops, it appears as sticks that can be inserted into the motherboard.
Unfortunately, there’s a rising trend for super thin and light laptops to have the RAM soldered directly to the motherboard in the interest of saving space, but this sacrifices upgradability and repairability.
SDRAM is not to be confused with SRAM, which stands for Static RAM. This is the memory used for CPU caches, among other things. It’s much faster but also limited in its capacity, making it unsuitable as a replacement for SDRAM.
Thankfully, you likely won’t come across SRAM in general usage, so it’s not something you need to worry about.
The Form Factors of RAM
For the most part, RAM comes in two sizes: DIMM (Dual In Line Memory Module), which is found in desktops and servers, and SO-DIMM (Small Outline DIMM), which you’ll see in laptops and small form factor computers.
Though the two form factors use the same technology and functionally work in exactly the same way, they obviously can’t be mixed. You can’t just jam a DIMM stick into a SO-DIMM slot, and a SO-DIMM stick won’t work in a DIMM slot (the pins simply don’t line up).
So when you’re buying RAM for a computer, the very first thing to know is its form factor. Nothing else matters if the stick won’t fit!
The Meaning of DDR
The RAM you use in your computer operates using Double Data Rate (DDR), which means that two transfers happen per clock cycle. Newer types of RAM are updated versions of the same technology, hence why RAM modules are labeled as DDR, DDR2, DDR3 and so on.
While all RAM generations are exactly the same size and shape, they still aren’t compatible. You can’t use DDR3 RAM in a motherboard that only supports DDR2, or vice versa.
Thankfully, each generation has a notch cut in the pins at different locations so they physically won’t fit. Even if you accidentally buy the wrong kind, you won’t have to worry about accidentally damaging your RAM or your motherboard when inserting the sticks.
DDR2 is the oldest kind of RAM that you’re likely to come across today. It has 240 pins (200 for SO-DIMM). It’s been well and truly superseded, but you can still buy it in limited quantities to upgrade older machines when necessary. Otherwise, it’s obsolete.
DDR3 was released all the way back in 2007 and is the current standard, but is currently being superseded by DDR4. While DDR3 DIMMs have the same number of pins as DDR2 (DDR3 SO-DIMMs have 204 pins vs. DDR2’s 200 pins), they run at lower voltages and higher timings so aren’t compatible.
DDR4 is the newest kid on the block and is just starting to pick up mass market adoption despite being first released back in 2011. It drops the voltage even further from 1.5V to 1.2V while increasing the number of pins to 260. When buying a new motherboard, get one that’s DDR4 compatible.
Understanding RAM Jargon
So you’ve wrapped your head around SDRAM, DIMMs, and DDR generations, but what about the other long strings of numbers? What do they mean? And what about ECC and Swap? Here are other terms that you may need to know.
Clock Speed, Transfers, Bandwidth
You may have seen RAM referred to by two sets of numbers, like DDR3-1600 and PC3-12800. These both reference and allude to the generation of the RAM and its transfer speed. The number after DDR/PC and before the hyphen refers to the generation: DDR2 is PC2, DDR3 is PC3, DDR4 is PC4.
The number paired after DDR refers to the number of megatransfers (MT) per second. (For example, DDR3-1600 RAM operates at 1600 MT/s). The number paired after PC refers to the theoretical bandwidth in megabytes per second. (For example, PC3-12800 operates at 12800 MB/s).
It’s possible to overclock RAM, just like you can overclock a CPU or graphics card, to increase the RAM’s bandwidth. Manufacturers sometimes sell RAM that’s already overclocked, but you can overclock it yourself. Just make sure that your motherboard supports the higher clock speed!
Pro Tip: You can mix and match RAM modules of different clock speeds, but they’ll all run at the clock speed of the slowest module. If you want to make use of that faster RAM, don’t mix it with just any old RAM lying around.
Timing and Latency
You’ll sometimes see RAM modules with a series of numbers like 9-10-9-27, which are referred to as timings. This is a measurement of the performance of the RAM in nanoseconds. The lower the numbers, the quicker the RAM can react to requests.
The first number (9, in the example) is the CAS latency, or the number of clock cycles it takes for data requested by the memory controller to become available to a data pin.
You’ll notice that DDR3 RAM generally has higher timing numbers than DDR2, and DDR4 RAM generally has higher timing numbers than DDR3 — yet DDR4 is faster than DDR3 which is faster than DDR2. Weird, right?
We can explain this using DDR3 and DDR4 as examples. The lowest speed DDR3 RAM runs at 533 MHz, which means a clock cycle of 1/533000000, or 1.87 ns. With a CAS latency of 7 cycles, total latency is 1.87 x 7 = 13.09 ns.
Whereas the lowest speed DDR4 RAM runs at 800 MHz, which means a clock cycle of 1/800000000, or 1.25 ns. Even if it has a higher CAS of 9 cycles, total latency is 1.25 x 9 = 11.25 ns. That’s why it’s faster!
But for most people, capacity trumps clock speed and latency every time. You’ll get much more benefit from 16 GB of DDR4-1600 RAM than you’ll get from 8 GB of DDR4-2400 RAM. In most cases, timing and latency should be the last points of consideration.
Error Correcting Code (ECC) RAM is a special kind that aims to detect and correct data corruption. It’s used in servers where errors in mission critical data could be disastrous, such as personal or financial information stored in RAM while being manipulated in a database.
ECC-compatible RAM isn’t supported by the vast majority of consumer motherboards and processors, so unless you’re planning to build a server that specifically requires ECC RAM, you should stay away from it.
How Much RAM Do You Need?
Long past are the days where “640K ought to be enough for anybody”. In a world where even phones are shipping with 4 GB of RAM and browsers often play fast and loose with their memory allocations, RAM frugality is a thing of the past.
I would suggest that 4 GB be the absolute bare minimum amount of RAM for a general usage computer, whether it’s running Windows 7 or later, OS X 10.7 or later, or most Linux distributions. We’ve also discussed the specifics of managing RAM in Linux.
If you find yourself with no less than 6 Word documents open at any one time, can’t bring yourself to close those 60 tabs in Google Chrome, or find yourself needing to run a virtual machine every now and again, you’ll probably want to have at least 8 GB of RAM.
16 GB of RAM should exceed the needs of most, but if you’re the kind who needs those 20 utilities running in the background on top of a mountain of browser tabs and everything else, you’ll be glad for the extra space. Very few people need 32 GB of RAM, but as they say, more is more.
RAM, Now Demystified
Now that you know the difference between DDR2 and DDR3, between DIMM and SO-DIMM, and between codes for transfer speeds and bandwidth, shopping for RAM shouldn’t be quite so daunting.
Really, as long as you’ve got the right generation and the right form factor, you can’t go wrong. Timing and latency do play a role, but capacity is king. And when in doubt, more RAM is better than faster RAM.
How much RAM do you have in your computer? What generation of RAM do you have? Have you tried overclocking at all? Let us know in the comments below!