📚 CompTIA A+ Lecture - Chapitre 6 🔄 Revision

Chapter 6: Memory

Lis chaque section en anglais. Le resume en francais ("En bref") est juste un filet de securite : essaie de comprendre en anglais d'abord.

1. Memory Overview & Physical Packaging

Software needs memory to run. The main type of memory on a motherboard is RAM (random-access memory), and specifically DRAM (dynamic RAM). There is also a second, faster type called SRAM (static RAM), also known as cache memory.

DRAM is cheaper but slower than SRAM. The reason is refreshing: the electrical charge inside a DRAM chip (which stores the 1s and 0s) leaks away over time, so the chip must constantly rewrite its own data to keep it. This refresh process takes time, which is why DRAM is slower.

SRAM does not need refreshing, so it is faster - but it is more expensive, so only a small amount is used, usually inside or right next to the processor, as cache memory. Cache memory holds the data the CPU uses most often, so the CPU does not have to wait for the slower DRAM. For example, on one system, reaching data in DRAM could take about 90 nanoseconds, while reaching the same data in cache could take only about 23 nanoseconds (a nanosecond is one-billionth of a second).

Memory today comes packaged as a DIMM (dual in-line memory module), with 168, 184, 240, or 288 pins depending on the type. A memory module is also informally called a memory stick, or just 'a stick of RAM'. Laptops and printers use a smaller version called a SODIMM (small outline DIMM).

En bref (FR) : La memoire principale de la carte mere est la RAM, plus precisement la DRAM (dynamique, moins chere mais plus lente car elle doit etre rafraichie regulierement). La SRAM (memoire cache, dans/pres du processeur) est plus rapide mais plus chere. Les modules memoire actuels sont des DIMM (168 a 288 broches selon le type) ; les portables/imprimantes utilisent une version plus petite, le SODIMM.

Vocabulary

RAM (random-access memory)the main memory a computer uses while running (memoire vive)
DRAM (dynamic RAM)the common, cheaper type of RAM that must be constantly refreshed (memoire dynamique)
SRAM (static RAM)a faster, more expensive type of memory that does not need refreshing; used as cache (memoire statique)
cache memorya small amount of very fast memory that holds the most-used data (memoire cache)
nanosecond (ns)one-billionth of a second; used to measure memory speed (nanoseconde)
DIMM (dual in-line memory module)the standard physical packaging of memory used on motherboards today (module de memoire DIMM)
SODIMMa smaller DIMM used in laptops and printers (module de memoire SODIMM)

Check yourself

Why is DRAM slower than SRAM?

DRAM must be constantly refreshed (its charge leaks away over time); SRAM does not need refreshing.

Where is SRAM (cache memory) usually found?

Inside or right next to the processor.

What is a SODIMM, and where is it used?

A smaller version of a DIMM, used in laptops and printers.

📝 Mes notes

2. Planning a Memory Installation: Memory Module Types

Planning a memory installation/upgrade means: check the documentation to see what memory type is supported, determine what features are supported, determine how much memory is needed, determine which module(s) and how many, then research prices and buy.

Memory technology keeps getting faster through DDR (double data rate) generations. CompTIA calls these 'DDR iterations'. Each DDR generation uses a different number of pins and is NOT compatible with the others - a DDR5 module simply does not fit into a DDR3 or DDR4 slot, even though all DDR modules are the same physical size.

DDR4 and DDR5 modules can also come in a lower-voltage version, marked with an 'L' at the end (for example DDR4L). The motherboard must support this feature. Lower-voltage modules are commonly used in laptops and mobile devices.

En bref (FR) : Planifier une installation memoire : verifier la doc, determiner les fonctionnalites supportees, la quantite necessaire, les modules a acheter. Chaque generation DDR (DDR3/4/5...) a un nombre de broches different et n'est PAS compatible avec les autres generations, meme si tous les modules DDR ont la meme taille physique. Les versions basse tension (suffixe L, ex: DDR4L) sont surtout utilisees sur portables.

Vocabulary

DDR iterationsthe generations of double data rate memory (DDR, DDR2, DDR3, DDR4, DDR5...) (generations DDR)
DDR3a memory generation using 240-pin DIMMs, not compatible with DDR2/DDR4 (DDR3)
DDR4a memory generation using 288-pin DIMMs, lower voltage than DDR3 (DDR4)
DDR5the newest common memory generation, 288-pin DIMMs, lower voltage than DDR4 (DDR5)

Memory module types / DDR iterations (Table 6.1)

TechnologyKey facts
SDRAM (Synchronous DRAM) Synchronizes with the CPU clock signal for faster access; used with DIMMs.
DDR Sends data on both the rising and falling edge of the clock signal (twice the data of plain SDRAM).
DDR2 Uses 240-pin DIMMs; not compatible with DDR.
DDR3 Uses 240-pin DIMMs; not compatible with DDR2 or DDR; supports multicore CPUs; ~1.5V.
DDR4 Uses 288-pin DIMMs (unique slot); lower voltage (~1.2V), faster than DDR3.
DDR5 Uses 288-pin DIMMs (unique slot, not DDR4-compatible); lower voltage (~1.1V); more bank groups/bandwidth than DDR4.
DDR6 Expected: lower voltage, faster speeds, more channels than DDR5 (upcoming technology).

Check yourself

Can a DDR4 module be installed in a DDR3 slot?

No - each DDR generation is physically incompatible with the others, even though they are the same physical size.

What does the 'L' at the end of a module name like DDR4L mean, and where is it commonly used?

It means a lower-voltage version; commonly used in laptops and mobile devices.

How many pins does a DDR4 or DDR5 DIMM use?

288 pins.

📝 Mes notes

3. Planning a Memory Installation: Memory Features

Beyond the DDR generation, memory modules can have different features. ECC RAM (error correction code) uses a mathematical check to detect up to 4-bit errors and correct 1-bit errors; it is used in high-end computers and servers. Non-ECC RAM does no error checking at all - if an ad doesn't mention ECC, assume the module is non-ECC.

Unbuffered memory sends data immediately and is faster. Buffered memory (registered memory) has extra chips that delay data transfers slightly to improve accuracy; it is used in servers and high-end computers, and is sometimes called fully buffered (FBDIMM). If a system allows both, and you install one registered module, ALL installed modules must be registered.

Single rank means the module has one set of DRAM chips; dual rank means it has two sets (the CPU normally accesses one rank at a time) - ads showing '2R' mean dual rank; if rank is not mentioned, assume single rank.

SPD (serial presence detect) is an extra chip on the module that stores its specifications (capacity, voltage, refresh rate...); the BIOS/UEFI reads this automatically for best performance. XMP (extreme memory profile) lets the BIOS/UEFI apply special voltage/timing settings to overclock the memory. A module can combine several of these features at once (for example: DDR4, registered, and ECC together).

Rule of thumb: always check the motherboard documentation before buying memory - don't guess the specifications.

En bref (FR) : ECC (correction d'erreur, serveurs/haut de gamme) vs non-ECC (aucune verification). Non bufferise (unbuffered, rapide) vs bufferise/registered (delai pour plus de precision, serveurs) - si un module registered est installe, tous doivent l'etre. Rang simple (single rank) vs double (dual rank/2R). SPD = puce qui informe le BIOS des specs du module. XMP = permet l'overclocking memoire via le BIOS. Toujours verifier la documentation de la carte mere avant d'acheter.

Vocabulary

ECC RAMmemory that can detect and correct small errors; used in servers/high-end PCs (memoire ECC (correction d'erreur))
non-ECC RAMmemory with no error checking (memoire non-ECC)
non-parityanother way to describe memory with no error checking (sans parite)
unbuffered memorymemory that sends data immediately, without delay (memoire non bufferisee)
buffered memory (registered memory)memory with extra chips that slightly delay data transfer for accuracy (memoire bufferisee/registered)
single ranka memory module with one set of DRAM chips (rang simple)
dual ranka memory module with two sets of DRAM chips (shown as 2R) (rang double)
SPD (serial presence detect)a chip on the module that reports its specifications to the BIOS/UEFI (detection de presence serie)

Memory features (Table 6.3)

FeatureWhat it means
ECC RAM Detects up to 4-bit errors, corrects 1-bit errors; used in servers/high-end PCs
Non-ECC RAM No error checking (assume this if ECC isn't mentioned)
Unbuffered memory Sends data immediately; faster than buffered/registered
Buffered / registered memory Delays data by one clock tick for accuracy; used in servers; sometimes called FBDIMM
Single rank One set of DRAM chips on the module (the default if not stated)
Dual rank (2R) Two single-rank sets on one module
SPD (serial presence detect) A chip that tells the BIOS/UEFI the module's specifications
Dual-voltage memory Can run at a lower voltage if the motherboard supports it (may be marked L)
XMP (extreme memory profile) Lets the BIOS/UEFI overclock the memory with special voltage/timing

Check yourself

What is the difference between ECC and non-ECC RAM?

ECC can detect and correct small errors (used in servers/high-end PCs); non-ECC does no error checking.

If you install one registered (buffered) memory module in a system that allows both types, what must be true of the other modules?

All installed modules must also be registered.

What does SPD do?

It lets the module tell the BIOS/UEFI its specifications (capacity, voltage, etc.) automatically.

What is XMP used for?

Letting the BIOS/UEFI apply special voltage/timing settings to overclock the memory.

📝 Mes notes

4. Planning for Memory: How Much Memory to Install

The amount of memory needed depends on the operating system, the applications used, how many are open at once, and the maximum the motherboard allows. Memory module capacities double in a series (for example 512 MB, 1 GB, 2 GB, 4 GB...). If a motherboard supports a maximum of 32 GB across four slots, using two 16 GB sticks is usually better than one 32 GB stick, because it allows dual-channel operation (covered next) and leaves room to upgrade later. Using matching stick sizes also tends to give better stability.

Before upgrading, you need to know: how much memory you already have, how many RAM slots are used/free, and the motherboard's maximum supported memory. There is no way around a motherboard's maximum - if you need more, you must upgrade the motherboard itself.

Windows editions also have their own memory limits, separate from the motherboard's limit - even if the motherboard allows more, the OS might not use it. Important warning: never install more than 4 GB of RAM on a 32-bit operating system (like 32-bit Windows) - it simply cannot recognize memory above 4 GB.

To see how much memory is installed, search for and run msinfo32 (System Information) or check Task Manager's Performance tab.

En bref (FR) : La quantite de RAM necessaire depend de l'OS, des applications, et du maximum autorise par la carte mere. Preferer plusieurs petits modules identiques (dual-channel, extensibilite) a un seul gros module. Le maximum de la carte mere est une limite absolue (seule solution : changer de carte mere). Windows a aussi ses propres limites selon l'edition. ATTENTION : jamais plus de 4 Go sur un OS 32 bits (non reconnu au-dela). Verifier la RAM installee via msinfo32 ou le Gestionnaire des taches.

Vocabulary

msinfo32 (System Information)a Windows tool that shows installed memory and system details (outil Informations systeme)

Minimum starting memory recommendations (Table 6.4)

Operating systemMinimum RAM to start calculations
Windows 10 2 GB
Windows 11 4 GB
macOS Sierra/Catalina/Big Sur 4 GB
macOS Ventura/Sonoma/Sequoia 8 GB
Linux From 64 MB, depending on the version

Windows memory limits (Table 6.5)

Operating system editionMemory limit
Windows 10/11 Home 128 GB
Windows 10 Pro/Enterprise 2 TB
Windows 11 Pro/Education 2 TB
Windows 11 Pro for Workstations/Enterprise 6 TB

Check yourself

What is the maximum RAM a 32-bit operating system can recognize?

4 GB (it cannot recognize anything above that).

If a motherboard's maximum memory isn't enough, what is the only real solution?

Upgrade to a different motherboard - there is no workaround.

Name one way to check how much RAM is installed in Windows.

Run msinfo32 (System Information) or check Task Manager's Performance tab.

Why is it often better to use two 16 GB sticks instead of one 32 GB stick?

It allows dual-channel operation and leaves slots free for future upgrades.

📝 Mes notes

5. Planning for Memory: Channel Configurations

Most motherboards today support dual-channel memory: the memory controller uses two memory paths at once instead of one, which improves performance. For example, a motherboard with four memory slots divided into two channels has two slots per channel.

Dual-channeling works best when the modules match exactly: same type, features, speed, and capacity. Some motherboards require an exact match to enable dual-channeling at all; others allow mismatched modules but then run everything at the lower/slower specification. To guarantee a match, buy a memory 'kit' - modules pre-tested and sold together as a matching pair.

Some newer and server motherboards support triple-channel (three modules working together) or quad-channel (four modules at once) memory, mostly found on server motherboards.

Documentation sometimes uses codes like '1DPC' or '2DPC', meaning 1 or 2 DIMMs Per Channel; '1R' or '2R' means single-rank or dual-rank modules.

Motherboard manufacturers label their slots differently, so always check the documentation to know which slots form which channel - never assume from the physical layout alone.

En bref (FR) : Le dual-channel utilise deux canaux memoire simultanement (meilleure performance) ; fonctionne mieux avec des modules identiques (type/vitesse/capacite) - sinon tout tourne a la vitesse du plus lent, voire desactive le dual-channel selon la carte mere. Acheter un 'kit' garantit des modules assortis. Triple/quad-channel existent surtout sur cartes serveur. '1DPC/2DPC' = DIMMs par canal ; '1R/2R' = rang simple/double. Toujours verifier la doc, l'etiquetage des slots variant selon le fabricant.

Vocabulary