mcelog.conf(5)
๐ NAME ๐
mcelog.conf โ literally the mcelog.conf reference, bestie. This is the mcelog.conf(5) page from the File Formats Manual, and itโs giving โconfig file that runs the whole mcelog situation.โ ๐
๐ธ SYNOPSIS ๐ธ
/etc/mcelog.conf
๐ DESCRIPTION ๐
/etc/mcelog.conf is the main configuration file for mcelog(8). Itโs split into sections, including a default section. Yes, weโre doing sections, bestie โ stay with me. ๐
๐ง General format ๐ง
optionname = value
White space is not allowed in value currently, except at the end where it is dropped. Noted. Periodt. โจ
In general, all command line options that are not commands work here. See man mcelog or mcelog --help for a list. For example, to enable the --no-syslog option use:
no-syslog = yes
โฆor no to disable it.
When the option has a argument, it looks like this:
logfile = /tmp/logfile
Below are the options which are not command line options.
cpu = typeโ set the CPU type for which mcelog decodes events. For valid values for type, please seemcelog --help. If this value is set incorrectly, the decoded output will be likely incorrect. By default, when this parameter is not set, mcelog uses the CPU it is running on; on very new kernels the mcelog events reported by the kernel also carry the CPU type, which is used too when available and not overridden. ๐ง โจdaemon = yesโ enable daemon mode. By default, mcelog just processes the currently pending events and exits. In daemon mode it keeps running as a daemon in the background, polls the kernel for events, and then decodes them. Main character energy: it stays. ๐filter = yesโ filter out known broken events by default. ๐ซถfilter-memory-errors = yesโ donโt log memory errors individually. They still get accounted if that is enabled. ๐raw = yesโ output in undecoded raw format to be easier machine readable; the default is decoded. ๐คcpumhz = 1800.00โ set CPU MHz to decode uptime from time stamp counter. Output is unreliable, and this is not needed on new kernels which report the event time directly. A lot of systems donโt have a linear time stamp clock, and the output is wrong then. Normally mcelog tries to figure out if it the TSC is reliable and only uses the current frequency then. Setting a frequency forces timestamp decoding. This setting is obsolete with modern kernels which report the time directly. ๐ฐ๏ธ๐ญ
๐ Log output options ๐
syslog = yesโ log decoded machine checks in syslog; the default is stdout or syslog for daemon. ๐ฌsyslog-error = yesโ log decoded machine checks in syslog with error level. ๐จno-syslog = yesโ never log anything to syslog. Nope, not even a little. ๐logfile = filenameโ append log output to logfile instead of stdout. Only when no syslog logging is active. ๐dmi = noโ use SMBIOS information to decode DIMMs (needs root). This function is not recommended to use right now and generally not needed. The exception is memdb prepopulation, which is configured separately below. ๐งฌrun-credentials-user = rootโ when in daemon mode, run as this user after set up. Note that the triggers will run as this user too. Setting this to non-root will mean that triggers cannot take some corrective action, like offlining objects. โ ๏ธrun-credentials-group = nobodyโ group to run as daemon with default to the group of therun-credentials-user. ๐ฏ
๐ฅ๏ธ The server config section ๐ฅ๏ธ
client-user = rootโ user allowed to access client socket. When set to*match any; root is always allowed to access. default: root only. ๐client-group = rootโ group allowed to access mcelog. When no group is configured any group matches (but still user checking). When set to*match any. ๐ซsocket-path = /var/run/mcelog-clientโ path to the Unix socket for client<->server communication. When nosocket-pathis configured the server will not start. ๐initial-ping-timeout = 2โ when mcelog starts it checks if a server is already running. This configures the timeout for this check. โฑ๏ธlisten-backlog = 10โ listen backlog for the Unix socket. default: 10. ๐
๐ง The dimm config section ๐ง
dimm-tracking-enabled = yesโ is the in-memory DIMM error tracking enabled? Only works on systems with integrated memory controller and which are supported. Only takes effect in daemon mode. ๐งdmi-prepopulate = yesโ use DMI information from the BIOS to prepopulate DIMM database. Note this might not work with all BIOS and requires mcelog to run as root. Alternative is to let mcelog create DIMM objects on demand. ๐๏ธ
Execute these triggers when the rate of corrected or uncorrected Errors per DIMM exceeds the threshold. Note when the hardware does not report DIMMs this might also be per channel. The default of 10/24h is reasonable for server quality DDR3 DIMMs as of 2009/10.
uc-error-trigger = dimm-error-triggerโ trigger for uncorrected DIMM error thresholds. ๐จuc-error-threshold = 1 / 24hโ uncorrected error threshold. โณce-error-trigger = dimm-error-triggerโ trigger for corrected DIMM error thresholds. โce-error-threshold = 10 / 24hโ corrected error threshold. ๐
๐ The socket config section ๐
socket-tracking-enabled = yesโ enable memory error accounting per socket. ๐งฎ
Threshold and trigger for uncorrected memory errors on a socket:
mem-uc-error-trigger = socket-memory-error-triggerโ trigger script for uncorrected memory errors on a socket. ๐จmem-uc-error-threshold = 100 / 24hโ threshold for uncorrected memory errors on a socket. โณmem-ce-error-trigger = socket-memory-error-triggerโ trigger script for corrected memory errors on a socket. โmem-ce-error-threshold = 100 / 24hโ threshold on when to trigger a correct error for the socket. ๐mem-ce-error-log = yesโ log socket error threshold explicitly? ๐bus-uc-threshold-trigger = bus-error-triggerโ trigger script for uncorrected bus error events. ๐iomca-threshold-trigger = iomca-error-triggerโ trigger script for uncorrected iomca erors. ๐งฉunknown-threshold-trigger = unknown-error-triggerโ trigger script for other uncategorized errors. โ
๐ง The cache config section ๐ง
Processing of cache error thresholds reported by Intel CPUs.
cache-threshold-trigger = cache-error-triggerโ trigger for cache error threshold processing from Intel CPUs. ๐งcache-threshold-log = yesโ should cache threshold events be logged explicitly? ๐
๐ The page config section ๐
Memory error accounting per 4k memory page. Threshold for the correct memory errors trigger script.
memory-ce-threshold = 2 / 24hโ threshold for the correct memory errors trigger script. ๐งฎmemory-ce-offline-retry = yesโ retry failed offlines with exponential backoff. ๐memory-ce-trigger = page-error-triggerโ trigger script for corrected errors. โmemory-ce-counter-replacement-threshold = 20 / 24hโ memory error counter per 4k memory page. Threshold for the counter replacements trigger script. ๐ขmemory-ce-counter-replacement-trigger = page-error-counter-replacement-triggerโ trigger script for counter replacements. ๐ ๏ธmemory-ce-log = yesโ should page threshold events be logged explicitly? ๐
Specify the internal action in mcelog for exceeding a page error threshold. This is done in addition to executing the trigger script if available:
offโ no actionaccountโ only account errorssoftโ try to soft-offline page without killing any processes. This requires an uptodate kernel. Might not be successfull. ๐ฌhardโ try to hard-offline page by killing processes. Requires an uptodate kernel. Might not be successfull. ๐soft-then-hardโ first try to soft offline, then try hard offlining. ๐ข
memory-ce-action = off|account|soft|hard|soft-then-hard
memory-ce-action = soft
memory-pre-sync-soft-ce-trigger = page-error-pre-sync-soft-triggerโ trigger script before doing soft memory offline. This trigger will scan and run all the scipts in thepage-error-pre-soft-trigger.extern. ๐งmemory-post-sync-soft-ce-trigger = page-error-post-sync-soft-triggerโ trigger script after completing soft memory offline. This trigger will scan and run all the scipts in thepage-error-post-soft-trigger.extern. ๐ง
โ๏ธ The trigger config section โ๏ธ
children-max = 2โ maximum number of running triggers. ๐ฏdirectory = /etc/mcelogโ execute triggers in this directory. ๐
๐ SEE ALSO ๐
๐ซถ source/version:mcelogยท page:mcelog.conf(5)ยท date: the original footer didnโt list one, so Iโm not inventing one, bestie. Periodt. ๐
๐ฆ where this page comes from
- opensuse-leap 16.0: mcelog 204-160000.2.2 ยท GPL-2.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms