Types of RAM: everything you need to know about main memory

A computer's RAM is one of its most important and sought-after components, as it significantly impacts system speed. Furthermore, there are many types of RAM, each with specific characteristics that users should be aware of to determine compatibility with their computer and how much it will improve performance. Many of these technical specifications are completely unknown to most users.

Therefore, in this article I'll show you everything you need to know about RAM, so that the next time you buy a module to upgrade your computer's memory, it won't hold any secrets for you. If you want to become a true RAM expert , keep reading…

A little bit of history

IBM punch card

Background

Computers need memory to store programs (data and instructions). Initially, computers in the 30s used punched cards. These were sheets of cardboard or other material with strategically placed holes so the computer could interpret them as binary code. This is how programs were loaded. A woman invented these punched cards: Ada Lovelace (Ada Byron) . Ada is considered the first programmer in history for her work in making Charles Babbage's famous Analytical Engine usable.

Gradually, the machines evolved. With the arrival of the ENIAC in 1946, vacuum tubes were used to build memories with bistable circuits . These tubes caused many problems due to their unreliability; their architecture was similar to light bulbs, and they burned out like them, requiring frequent replacement. Furthermore, they generated heat and consumed large amounts of energy.

Something different was needed in electronics if progress was to be made. Ferrite core memories began to be used in 1953. And it wasn't until 1968 that IBM designed the first semiconductor-based memory . This solid-state memory solved the problems of its predecessors, offering greater reliability, durability, and speed. It had a capacity of 64 bits, but the most interesting thing was that the first memory chips were here to stay.

Throughout much of history , different memory formats were used , such as magnetic tapes, floppy disks, optical media (CD, DVD,…), the first magnetic hard disks (HDD), semiconductor memories (SSD, RAM, registers, buffer/cache, ROM,…), etc.

At this point, it's important to note that in the past, only one level of memory was used : main memory, where the program resided. However, as computing evolved, other types of programmable memory were gradually incorporated, eventually leading to the development of fast memory such as RAM.

The arrival of RAM

When RAM arrived, computers began to have two levels of memory. On one hand, there was higher capacity, lower speed, and cheaper memory, known as secondary storage . This secondary storage is the hard drive, which has since evolved from magnetic hard drives (HDDs) to the current semiconductor-based solid-state drives, or SSDs.

While main or primary memory is what we call RAM (Random Access Memory), this memory is several times faster than secondary memory, but its capacity is considerably lower, since it is more expensive and it wasn't practical to have very large capacities.

By supplementing high-capacity secondary storage for programs and data with faster intermediate memory between the secondary storage and the processing unit, extra speed can be achieved without sacrificing high capacity. Instructions and data for running processes or programs are loaded into RAM so the CPU can access them without performing access operations on secondary storage, which would be much slower.

Furthermore, RAM is a type of volatile memory that loses its contents if the power supply is removed. It wouldn't be practical to rely solely on this type of memory, as everything would be lost every time the computer is turned off. That's why secondary storage remains so essential. It's permanent memory that doesn't require a constant power supply to store data.

If you like history, the summarized RAM timeline is:

  • One of the first RAM memories was that of magnetic core of 1949. Each bit was stored in a toroid of ferromagnetic material. Each piece was a few millimeters in diameter, therefore taking up a lot of space and limiting capacity. But it was definitely better than relays and delay lines for this type of random access memory.
  • In 1969 the first RAMs created with Intel semiconductors would come. With chips like the 3101 64-bit. The following year he presented DRAM memory of 1 KB (chip 1103), laying the foundations of the current random access memories. In fact, DRAM would become the standard, so IBM's invention had taken over the industry.
  • Years later they would continue to be miniaturized, with chips with increasing capacity and performance, until the SIPPs and DIPs began to be discarded to start using the current ones. SIMM modules (Single In-line Memory Module), that is, modules with all contacts on one side. That made it easy to change the RAM and add them as if they were expansion cards.
  • In the late 80s, processor technology made processors much faster than RAMs, leading to significant bottleneck. It was necessary to increase the bandwidth and access speed of the lagging memory chips.
  • Numerous technologies began to arrive to minimize this bottleneck, such as FPM RAM (Fast Page Mode RAM) technology, inspired by the Burst Mode of the Intel 80486. An addressing mode that improved access, with access times of 70 or 60 ns .
  • EDORAM, o Extended Data Output, would come in 1994 with access times of 40 or 30 ns. An improvement based on this was the BEDO, Burst EDO, achieving a 50% improvement over the EDO.
  • faster memories they were those of microprocessors, such as cell-based registers SRAM (Static RAM). But they are extremely expensive to achieve great capabilities with, so they were not practical despite the tremendous performance they have. That is why they were relegated to small buffers or very small CPU registers. For this reason, the EDO, BEDO, FPM, were still of the DRAM type.
  • In 1992, Samsung creates the first commercial chip SDRAM (Synchronous Dynamic RAM), the current standard.
  • From here on, all RAMs were based on SDRAM memory cells. One of the first to appear was the Rambus from Intel, which passed without pain or glory in front of the cheaper SDR RAM (Single Data Rate RAM).
  • To improve the performance of the previous ones and not raise the price as in the case of Rambus, the DDR would arrive (Dual Data Rate). DDR allowed transferring on two channels at the same time in each clock cycle, doubling the performance of SDR.
  • And from the DDR, you know how history has continued with the appearance of the DDR2, DDR3, DDR4, DDR5, ...

... but it wasn't enough

Computing demands ever-increasing performance. HDDs have evolved into much faster SSDs . And microprocessors have begun to include their own fast memories between the functional units and RAM. This allows them to load data and instructions into these memories for much more immediate access, instead of having to go directly to RAM every time they need something.

The memory I'm referring to is cache memory , an intermediate memory that acts as a buffer between the CPU and RAM. It's worth noting that in the past, cache modules could be purchased like RAM and added to your computer if desired. This was similar to the old coprocessors or FPUs, which weren't integrated into the CPU chip itself. However, over time, they became integrated into the processor package (see, for example, the Intel Pentium Pro) and eventually became part of the integrated circuit, as in modern microprocessors.

These cache memories have grown in levels , such as the current L1 (unified or separate for instructions/data), unified L2, L3, etc. And not only that, outside the microprocessor, work is also being done to accelerate access to data and instructions in some way, such as Intel Octante modules and other types of buffers, but that's another story…

DDR SDRAM

DIMM vs. SO-DIMM

Having given you some background, you now know the path taken to arrive at the current DDR SDRAM . Now, let's look at the different types and their characteristics. It's worth noting that, unlike the Intel Pentium 4, which primarily used its RAMBUS architecture, the AMD Athlon processors were the first to support the cheaper DDR. Faced with the sales and performance of AMD-based systems, Intel was forced to adopt DDR as well…

PREMIUM QUALITY

According to the DDR version

DDR versions allow for disparate performance levels:

  • DDR: PC-xxxx indicates the bandwidth of the module, if for example it is PC-1600, that results from multiplying 100.000.000 hz (100 Mhz bus) x 2 (being Dual Data Rate) x 8 bytes = 1600 MB / s or 1.6 GB / s transfer.
    • DDR-200 (PC-1600): with 100 Mhz bus and 200 Mhz I / O. Its name comes from its 1600 MB / s or 1.6 GB / s transfer.
    • DDR-266 (PC-2100): with 133 Mhz bus and 266 Mhz I / O. With transfer capacity of 2.1 GB / s.
    • DDR-333 (PC-2700): with 166 Mhz bus and 333 Mhz I / O. With a transfer capacity of 2.7 GB / s.
    • DDR-400 (PC-3200): with 200 Mhz bus and 400 Mhz I / O. With a total of 3.2 GB / s maximum transfer.
  • DDR2: works with 4 bits per cycle, that is, 2 going and 2 back. That improves the potential of the previous DDR1.
    • From DDR2-333 (PC2-2600): it works with 100 Mhz base bus, with 166 Mhz I / O, which gives it a transfer capacity of 2.6 GB / s. 10 ns access time.
    • Up to DDR2-1200 (PC2-9600): the bus goes up to 300Mhz, 600Mhz for I / O and 9.6GB / s transfer. 3,3ns access time.
  • DDR3: allows higher transfer speed and work speed compared to DDR2, although the latency is higher.
    • From DDR3-1066 (PC3-8500): 133 Mhz bus, 533 Mhz I / O, 8.5 GB / s transfers. Access time of 7.5 ns.
    • Up to DDR3-2200 (PC3-18000): 350 Mhz bus, 1100 Mhz I / O, and 18 GB / s transfers. 3.3 ns access time.
  • DDR4: lower supply voltage and higher transfer rate compared to the previous ones. Unfortunately it has a higher latency, which reduces its performance all other things being equal.
    • From DDR4-1600 (PC4-12800): with a 200 Mhz base bus, 1600 Mhz I / O, and 12.8 GB / s transfers.
    • Up to DDR4-2666 (PC4-21300): with 333 Mhz base bus, 2666 Mhz I / O, and 21.3 GB / s transfers.
  • DDR5, DDR6, DDR7 ...: the near future.

According to the type of module

SIMM modules evolved into the current DIMMs , which are divided into:

  • DIMM (Dual In-Line Memory Module): a memory module with contacts on both sides, allowing a greater number of contacts. They are the ones that use the desktop computers.
  • SO-DIMM (Small Outline DIMM)- This is a scaled-down version of regular DIMMs, that is, shorter modules for smaller computers. They are used in notebook computers, motherboards for miniPCs with small form factors such as mini-ITX, etc.

Whether they are DIMMs or SO-DIMMs, they can be of different capacities, characteristics, and types seen above. This does not change anything.

According to the channels

RAM memory modules can be grouped with one or more buses:

  • Single Memory Channel: all memory modules are grouped into a single bank of slots, sharing the same bus.
  • Dual Memory Channel- Has two separate memory slot banks on the motherboard. The modules can be inserted in these two channels, with two separate buses, providing greater bandwidth, and therefore performance. For example, if you have an APU or an Intel with an integrated GPU, it could bring great benefits by allowing the CPU MMU to access one bus while the GPU memory controller accesses the other without interfering between the two ...
  • Quad Memory ChannelWhen the access demands are much higher, it is possible to find motherboards with four channels, although having four channels does not always provide the expected performance if this capacity is not really taken advantage of.

Latency

RAM slots on a motherboard

Finally, when you want to upgrade your RAM, there are a number of features, besides what we've already discussed, that can confuse you when choosing the right one. I'm referring to latencies , CAS latency, RAS latency, etc. As for voltages and module type, the truth is that this will depend on the compatibility of your motherboard and the type of memory you choose. You should read your motherboard manual to find out what memory your chipset supports and what type of module you have.

You can also look at the memory module or modules that you already have installed to know how to acquire a similar module to expand it, and that it is of the same characteristics and compatible.

RAM speed is always related to two factors: clock frequency and latency . Latency is the time it takes for an access (read or write). A single RAM module can have different latencies, and this is where users get confused, wondering if installing a module with a different latency will cause incompatibility, or if it will affect performance. That's what I'm going to try to clarify here.

First, you need to understand how RAM works . When you need to access a particular block of memory—that is, a portion of memory where data is stored—memory is organized into rows and columns. By activating the row and column selection lines, you can write or read whatever you want. But for these access operations to occur, they need to go through loops to execute actions that delay the operation. That's latency.

How do I determine the latency of a module? You've probably noticed that modules have markings like 16-18-18-35 or similar; these represent the latency in nanoseconds. Each number has a specific meaning depending on its position:

  • 16: The first value can also appear as CL or CAS Latency, it roughly indicates the time that passes between the processor requesting data from RAM and it locates and sends it.
  • 18: The second number can be found as TRCD or RAS to CAS Latency, this number represents the time between the location and activation of a memory line (RAS) and a column (CAS), remember that memory is organized as if it were of a chess board.
  • 18: The third number can be found as TRP or RAS Precharge and refers to the time it takes to memory to do a line break, that is, to deactivate the data line you are currently using and activate a new line.
  • 35: Finally the fourth value indicates what can appear as TRAS, Active or Active to precharge. Represents the time to wait before memory can access the data again.

The lower the numbers, the better , as it will be faster. If you have a DDR4 module with a CL11 and a module with a CL9, the latter will undoubtedly be much faster.

Can you mix modules with different latencies?

This is where the million-dollar question comes in , and where many users are confused. The answer is yes. If you have a DDR4 module with the same clock frequency but a specific CL installed in your computer, and you buy another one with the same specifications but a different CL, it doesn't matter. It will work; they won't be incompatible, and your computer won't reject it. Latency is like capacity or brand; it can be different between modules without any issues.

So what? The only thing is that you might not get optimal performance, or it might drop a bit depending on your choice. Let me explain with an example. Imagine a practical scenario : you have an 8GB Kingston DDR4 module at 2400MHz and CL14 installed in your computer. But you want to upgrade your RAM and buy an 8GB Corsair DDR4 module at 2800MHz and CL16. You would have two fully compatible modules; your computer will tolerate it, it won't stop working. You would have 16GB of RAM running. But… several things could happen:

  1. Both RAM modules lower their frequency to default profiles of the JEDEC standard, such as 2133 Mhz. That is, your memory would become somewhat slower by reducing its clock frequency, and therefore its transfer rate.
  2. Another option is for the module to match the existing module in latency and frequency. In this case, instead of 2800 Mhz, both would work at 2400Mhz and at the highest CL.

When would you run into problems? When using Dual Channel or Quad Channel. In those cases, it's best to buy modules that are identical in terms of specifications (capacity and manufacturer may vary).

How much RAM do I need?

Well, to sum it up, it depends on each user's needs . For example, if you're going to use office software, browse the internet, etc., 4 to 8 GB might be enough. But if you want to play games, you might need 8-16 GB. If you're going to run several virtual machines, you might need 32 GB or more… it's very personal. There's no magic formula to know how much you need.

It is very important to see the recommended requirements of the software that you are going to use regularly to choose your hardware well ...

There's a formula to help you choose the minimum amount of RAM required, so you don't install less than you should. It involves multiplying 2 GB by the number of cores your CPU has . Therefore, if you have a quad-core processor, you should have at least 8 GB of RAM.


Add as preferred source in Google