https://wiki.gentoo.org/wiki/Handbook:A ... figuration
However, in the app-admin/mcelog package, it says:Next select the exact processor type. It is also recommended to enable MCE features (if available) so that users are able to be notified of any hardware problems. On some architectures (such as x86_64), these errors are not printed to dmesg, but to /dev/mcelog. This requires the app-admin/mcelog package.
We are using 5.x.x kernels in 2022. Does it mean that we will never get error messages on MCE?Starting with version 2.6.4, the Linux kernel for x86-64 no longer decodes and logs recoverable Machine Check Exception events to the kernel log on its own.
- - - -
On the other hand, in the kernel, the description of X86_MCELOG_LEGACY says:
If I did not enable X86_MCELOG_LEGACY, I do not have the device file /dev/mcelog. So I think X86_MCELOG_LEGACY is needed for the kernel to write something into /dev/mcelog, then parsed by app-admin/mcelog.CONFIG_X86_MCELOG_LEGACY:
│ Enable support for /dev/mcelog which is needed by the old mcelog
│ userspace logging daemon. Consider switching to the new generation
│ rasdaemon solution.
- - - -
For your information, I am able to test mcelog by following the instruction in http://mcelog.org/README.html . The mce-inject is available in https://github.com/andikleen/mce-inject . Be caution that this test will halt your system, halt for a few seconds then auto reboot. You will loss all unsaved files.
- - - -
To summarise,
- Will we still get MCE logs in case of hardware problems?
- If no, MCE logs are no longer in use (hinted by app-admin/mcelog and kernel's X86_MCELOG_LEGACY). How to configure "rasdaemon"? (Handbook may need updating if so.)



