I'm curious as to whether or not there's some performance counter that will log the number of ECC corrections required, that could perhaps be tracked as an early indicator of memory failure. I imagine it would theoretically be accessible in the same way that page faults from the tlb are reported to the OS?

Solutions for Windows or FreeBSD and Linux are welcome.


Most hardware handles this logging natively. For example HP's iLO baseboard management controller spouts ECC memory error activity to its Integrated Management Log.

So, the generic answer for the generic question is: Check your hardware management system's capabilities and resources.


For Linux:

Install mcelog and it will log all errors into /var/log/mcelog.log

You can also look at the Linux sysfs, see the EDAC documentation for the relevant information: https://www.kernel.org/doc/Documentation/edac.txt


Or read this page, it talks about using Linux's kernel EDAC to query the memory controller, and provides some examples scripts.: http://www.admin-magazine.com/Articles/Monitoring-Memory-Errors

more /sys/devices/system/edac/mc/mc0/ue_count

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.