Sub topic 7
Diagnosing memory problems
This chapter assumes you know what RAM is, can identify DIMM and SODIMM modules, and can open a desktop or laptop safely. It also assumes you have followed the troubleshooting methodology and the POST chapters earlier in this tutorial.
What memory faults look like
RAM (random access memory) holds the data the CPU is working on right now. Bad RAM rarely fails in a clean, obvious way. The usual symptoms are:
- The system does not POST and gives repeating beeps or a blank screen.
- Random blue screens (BSOD) with different stop codes each time.
- Spontaneous restarts or freezes, often under load.
- Applications crash, or files become corrupted.
- The system reports less memory than is installed.
- Performance drops badly because the system uses the page file on disk.
A problem that is intermittent and changes from one crash to the next points toward memory. A problem that repeats the same way every time usually points elsewhere.
Common causes
| Cause | Typical clue |
|---|---|
| Module not fully seated | No POST after the system was moved or serviced |
| Failed or faulty module | Errors in a memory test, one module only |
| Mismatched modules | Boot problems or instability after an upgrade |
| Wrong type or speed | System will not boot, or runs at the lowest speed |
| Dirty contacts | Intermittent errors on an older system |
| Bad slot or motherboard | A good module fails in one slot only |
| Bad XMP or overclock setting | Crashes after a BIOS/UEFI change |
Compatibility matters. DDR3, DDR4, and DDR5 modules have different notches and are not interchangeable. A laptop uses SODIMMs, and a server may need ECC (error-correcting code) memory, which can fix single-bit errors.
A working diagnostic process
Follow the methodology in order. Identify the problem, then form a theory of probable cause. The steps below test that theory.
- Ask what changed. A new module, a BIOS update, or a recent move all matter.
- Power off, unplug, and use ESD protection.
- Reseat each module until the latches click.
- Check that the modules match the motherboard's supported type, speed, and capacity.
- Test with one module at a time, in a known-good slot.
- Swap in a known-good module to separate a bad module from a bad slot.
- Reset the BIOS/UEFI to defaults to remove XMP or overclock settings.
- Run a memory test.
Testing memory
Windows includes the Windows Memory Diagnostic. Running it schedules a test for the next restart.
mdsched.exeChoose to restart now and check for errors. The result appears after you sign in. Any reported error means you should treat the module as faulty. For a deeper test, boot from a tool such as MemTest86, which runs outside the operating system and can run for several passes.
Run the tests with one module installed at a time when you need to find the bad stick.
Interpreting POST and beeps
Beep patterns vary by BIOS vendor, so you must check the motherboard manual. Many boards use a repeating beep for a memory fault. Some also show a debug code or a memory LED. If a system gives a memory beep code, reseat the modules first, since that fixes many cases.
Other clues
- If the BIOS/UEFI shows less memory than installed, a module may be unseated or dead. A 32-bit operating system also caps usable memory at about 4 GB.
- Integrated graphics can reserve some system RAM, so a small gap is normal.
- If errors appear only after enabling XMP, the profile may be too aggressive for the modules or CPU.
Exercise
A technician adds a second memory module to a desktop. The PC now freezes randomly and shows different BSOD codes. The module is a different speed from the first. Name the most likely cause and the next step.
Show answer
The modules are mismatched, or the new module is faulty or poorly seated. Next, power off, reseat both modules, then test each one alone. Run Windows Memory Diagnostic or MemTest86 to confirm which module is at fault.
Exercise
A memory module passes a test in slot 1 but fails every test in slot 3. What does this indicate?
Show answer
The slot, or possibly the motherboard, is faulty. The module is good because it works in another slot. Stop using slot 3 and consider replacing the motherboard if that slot is required.