I have created Linux RAM memory error analysis script to analize the ECC memory errors.
The script provides the following functionality:
Script is located on Github: https://github.com/hhorvat/scripts/blob/main/dimm-diagnose.sh
Final result (short version) may look like:
================================================
POTENTIAL FAULTY DIMMs
================================================
EDAC LABEL: CPU_SrcID#1_Ha#0_Chan#1_DIMM#0
Socket: 1
Processor: PROC 2
Channel: 1
DIMM index: 0
Corrected errors: 106
Uncorrected errors: 0
POTENTIAL DIMM:
PROC 2 DIMM 1 (P2-A)
DMI status: INSTALLED
DIMM size: 16 GB
Part Number: 672612-081
SEVERITY: CORRECTED ERRORS
================================================
Feel free to test it.
The script provides the following functionality:
- Memory Error Detection – Reads EDAC counters for Corrected Errors (CE) and Uncorrected Errors (UE).
- Memory Channel Identification – Identifies the processor socket and memory channel where errors occur.
- DIMM Module Identification – Uses EDAC DIMM index information and physical memory slot mapping to identify the affected DIMM module.
- Physical Module Verification – Compares the results with DMI/SMBIOS information retrieved using dmidecode.
- Potentially Faulty DIMM Reporting – Displays the exact physical module designation, for example PROC 2 DIMM 1 (P2-A), including its memory capacity and Part Number.
Script is located on Github: https://github.com/hhorvat/scripts/blob/main/dimm-diagnose.sh
Final result (short version) may look like:
================================================
POTENTIAL FAULTY DIMMs
================================================
EDAC LABEL: CPU_SrcID#1_Ha#0_Chan#1_DIMM#0
Socket: 1
Processor: PROC 2
Channel: 1
DIMM index: 0
Corrected errors: 106
Uncorrected errors: 0
POTENTIAL DIMM:
PROC 2 DIMM 1 (P2-A)
DMI status: INSTALLED
DIMM size: 16 GB
Part Number: 672612-081
SEVERITY: CORRECTED ERRORS
================================================
Feel free to test it.
Last edited: