Sub topic 7
Diagnosing Memory Problems
This chapter covers how to recognize, isolate, and fix faults in system memory (RAM). It assumes you can open a desktop or laptop, you know what POST and a beep code are (covered in the earlier chapter on reading POST), and you are comfortable with Windows tools and the command line.
What RAM does and why faults look strange
RAM (random access memory) holds the operating system, running programs, and open data while the computer is on. It is volatile, which means it loses its contents when power is removed. The CPU reads and writes RAM constantly.
A bad memory cell does not always stop the computer at once. The fault may sit in a part of memory that is rarely used, and the system works until the OS or a program lands on the bad spot. For this reason, memory faults often look random. The same PC may run for an hour and then crash, or crash only when a certain program loads.
Memory faults are common exam material because the symptoms overlap with other components. Your job is to separate memory from the disk, the power supply, the motherboard, and the operating system.
Common symptoms
| Symptom | What it suggests about RAM |
|---|---|
| No POST, long repeating beeps, or no video at power-on | Module not seated, wrong type, or dead module |
| Random freezes and spontaneous restarts | Failing cell or unstable module |
| Blue Screen of Death (BSOD) with varying stop codes | Memory corruption, especially when the codes differ each time |
| Applications crash or close without warning | Corrupted data in memory |
| System reports less RAM than installed | Unseated module, bad slot, or a 32-bit OS limit |
| Corrupted files or "file not found" errors that come and go | Bad data written through faulty memory |
| Slow performance with high memory use | Not a fault: insufficient RAM or a memory leak |
Two points need care. First, the last row shows that "not enough RAM" is a different problem from "bad RAM". Task Manager showing 95 percent memory use during normal work points to a capacity issue. Second, a BSOD with the same stop code every time more likely points to a driver. A BSOD whose code changes from crash to crash points more strongly to hardware, and memory is the first suspect.
Memory types and compatibility
Many "bad RAM" cases are really "wrong RAM". Check these properties before you blame a module.
- Generation: DDR3, DDR4, and DDR5 are physically different. The notch is in a different place on each, so they cannot be inserted into the wrong slot. Forcing a module can break the slot.
- Form factor: Desktops use DIMM (dual in-line memory module). Laptops and small systems use SODIMM (small outline DIMM), which is shorter.
- Speed and capacity: The motherboard and CPU support a maximum speed and total capacity. Faster modules usually run at the slower supported speed.
- ECC: ECC (error-correcting code) memory detects and corrects single-bit errors. It is common in servers and workstations. The board must support it. Non-ECC and ECC modules should not be mixed unless the board documents that it works.
- Registered or buffered: Server RAM may be registered (RDIMM). It does not work in a board that supports only unbuffered memory.
- Channels: Dual-channel and quad-channel modes need matching modules in the correct slots. The motherboard manual shows which slots to fill. Mismatched or misplaced modules usually still work, but at lower performance.
- 32-bit versus 64-bit OS: A 32-bit Windows installation can address only about 4 GB. If you install 16 GB and the OS reports roughly 3.5 GB, the fix is a 64-bit OS, not new RAM.
The troubleshooting process applied to memory
Use the CompTIA methodology in order. For a memory scenario it looks like this.
- Identify the problem. Ask what changed. Was RAM just added, was the case opened, or did the PC move? Note any beep codes and error messages.
- Establish a theory. Start with the simple, likely cause: a loose module.
- Test the theory. Reseat, swap, and run diagnostics.
- Plan and implement. Replace the module, and note the change on a ticket.
- Verify. Run a memory test again and use the system under load.
- Document. Record the faulty module, the slot, and the fix.
Safety before you touch anything
Power off the system, unplug the power cable, and press the power button once to drain stored charge. Use an ESD (electrostatic discharge) wrist strap clipped to bare chassis metal, or touch the chassis often. Hold modules by the edges and never touch the gold contacts. On a laptop, remove the battery if it is removable before you open the memory door.
Reseating and swapping
Reseating is the first physical test, and it fixes many faults.
- Open the side clips on the slot.
- Lift the module straight out.
- Look at the contacts for dirt, corrosion, or burn marks.
- Line up the notch and press down evenly on both ends until the clips snap shut.
The clips should close on their own. If one side will not lock, the module is probably not fully down.
Next, isolate the fault by swapping.
- Test one module at a time. Install a single module in the first slot recommended by the manual. If the system boots, add the next module.
- Test each slot. Put a module that works in each slot in turn. A fault that follows the module means a bad module. A fault that stays with the slot means a bad slot or a motherboard problem.
- Use known-good parts. If you have a module you know works, swap it in. This is the fastest way to decide.
A common exam trap is a newly added module that causes a failure while the old modules are fine. Remove the new module first. Then check that it matches the type and speed the board supports.
Reading POST and beep codes for memory
On most systems, a memory fault at power-on shows up as one of these.
- A repeating beep pattern, often long or continuous beeps.
- A black screen with the fans running.
- A diagnostic LED or two-digit code display on the motherboard.
- A message that no memory was detected.
Beep patterns differ by BIOS maker, so the motherboard manual is the real reference. For the exam, remember that a repeating beep pattern with no video usually means a memory problem. Also remember that a single short beep usually means a normal POST on many systems.
After a RAM change, some boards take a long time on the first boot while they train memory. Wait a few minutes before you decide the board is dead. Clearing CMOS can also help when the board holds an old, unstable memory profile.
Software diagnostics
Hardware tests tell you if the module is physically faulty. Two tools are worth knowing.
Windows Memory Diagnostic writes a test to run at the next restart. Run it from a command prompt or the Start menu search:
mdsched.exeChoose "Restart now and check for problems". The tool runs a standard test, and you can press F1 to change it to Basic, Standard, or Extended. The result appears after Windows starts again. If you do not see it, open Event Viewer and look in Windows Logs, System, for entries from MemoryDiagnostics-Results.
MemTest86 is a third-party tool that boots from a USB drive and runs without the OS. It tests more thoroughly and is useful when the PC will not boot to Windows. Any error it reports means the memory, or the memory controller path, is faulty. Run several passes. A fault that appears only in later passes is still a fault.
Keep this limit in mind: a clean test result lowers the chance of a bad module but does not rule it out. Intermittent faults can pass a short test. Heat, voltage, and timing can also matter, so test again after the system has warmed up.
BIOS/UEFI settings
Check the firmware setup screen for memory problems that are not hardware faults.
- Detected size: The total should match what you installed. A lower number points to a bad slot, an unseated module, or an unsupported module.
- XMP or EXPO profile: These are one-click overclock profiles stored on the module. If a system crashes after enabling one, turn it off and use the default speed.
- Manual timings and voltage: Overclocked values can cause crashes that look like bad RAM. Reset to defaults to test.
- BIOS version: An old BIOS may not support a newer module. A firmware update can fix this.
- Integrated graphics: Some systems reserve part of RAM for video. The OS then shows less usable memory, which is normal.
Laptops
Laptops often have one or two SODIMM slots under a cover on the bottom. Some thin laptops solder the memory to the board. Soldered memory cannot be reseated or replaced, so a fault there means board repair or replacement. Check the specification sheet before you plan an upgrade.
Memory leaks and capacity
Do not confuse a hardware fault with a software one. A memory leak happens when a program keeps taking memory and does not give it back. The system slows over hours or days, and a restart helps. Open Task Manager, sort by Memory, and look for a process that keeps growing. The fix is to update or replace that program. Adding RAM only delays the problem.
If memory use is simply high during normal work, add RAM or close programs. Also check the page file, which is disk space used as overflow memory. Heavy paging makes a PC slow and the drive busy, and it can look like a failing disk.
Distinguishing memory from other causes
| Observation | Likely cause |
|---|---|
| Crashes stop when one module is removed | Bad module |
| Crashes continue with each module alone | Not the RAM, so check the disk, PSU, or OS |
| Errors in MemTest86 | Bad module or slot |
| Corruption and SMART warnings from the drive | Storage, not RAM |
| Reboots under load with a clean memory test | Power supply or overheating |
| Same stop code naming one driver | Driver or software |
If the disk is suspected, you can check it with commands from earlier chapters, such as chkdsk C: /scan, and the SMART check for Linux drives. Use them to rule storage in or out before you replace memory.
Exam tips
- "Added new RAM, now the PC will not POST" points to an unseated or incompatible module.
- "Installed 8 GB but Windows shows 3.5 GB" points to a 32-bit OS.
- "Random BSODs with different codes" points to memory first.
- "A memory test passes but the problem continues" means look elsewhere or test again.
- The first fix is almost always to reseat, then to isolate by testing one module at a time.
Exercise
A technician installs two new DDR4 modules in a desktop. The PC powers on, the fans spin, and it gives repeating beeps with no video. The old modules worked. What are the next two steps?
Show answer
Power off, unplug, and use ESD protection. Then reseat the new modules and test them one at a time in the recommended slot. Also confirm that the modules are the type, speed, and capacity the motherboard supports. If a single module still fails in every tested slot, replace that module. If a good module fails in one slot, that slot or the motherboard is the fault.
Exercise
A user with a 32-bit version of Windows installs 16 GB of RAM. System properties shows about 3.5 GB usable. Memory tests pass. What is the cause and the fix?
Show answer
A 32-bit OS can address only about 4 GB, part of which is reserved for hardware. The RAM is not faulty. Install a 64-bit version of Windows, which can use the full 16 GB.
Exercise
A PC shows random BSODs with a different stop code each time. Windows Memory Diagnostic reports no errors. What should you do next?
Show answer
A passing short test does not rule out RAM. Run MemTest86 from USB for several passes, and test each module alone. Also check the XMP profile and the BIOS timings, and rule out the power supply and overheating if the memory tests stay clean.