Anda di halaman 1dari 4

How do I disable MCE function?

- Red Hat Customer Portal

SUBSCRIPTIONS
DOWNLOADS
SUPPORT CASES

KinAn KinAn

CUSTOMER
Products & Services Tools Security Community
PORTAL

Products & Services Knowledgebase How do I disable MCE function?

How do I disable MCE function?


/ SOLUTION UNVERIFIED - Updated October 19 2015 at 11:30 AM - English

Environment
Red Hat Enterprise Linux 6

Issue
How do I disable MCE function?
Why /var/log/mcelog fle sill has content even if I turn of mcelogd service?

Resolution
Add following item in /boot/grub/grub.conf

Raw

mce=off

From kernel-doc package: Documentation/x86/x86_64/boot-options.txt

Raw

Machine check

Please see Documentation/x86/x86_64/machinecheck for sysfs runtime tunables.

mce=off
Disable machine check
mce=no_cmci

https://access.redhat.com/solutions/367773[8/21/2017 2:31:07 PM]


How do I disable MCE function? - Red Hat Customer Portal

Disable CMCI(Corrected Machine Check Interrupt) that


Intel processor supports. Usually this disablement is
not recommended, but it might be handy if your hardware
is misbehaving.
Note that you'll get more problems without CMCI than with
due to the shared banks, i.e. you might get duplicated
error logs.
mce=dont_log_ce
Don't make logs for corrected errors. All events reported
as corrected are silently cleared by OS.
This option will be useful if you have no interest in any
of corrected errors.
mce=ignore_ce
Disable features for corrected errors, e.g. polling timer
and CMCI. All events reported as corrected are not cleared
by OS and remained in its error banks.
Usually this disablement is not recommended, however if
there is an agent checking/clearing corrected errors
(e.g. BIOS or hardware monitoring applications), conficting
with OS's error handling, and you cannot deactivate the agent,
then this option will be a help.
mce=bootlog
Enable logging of machine checks left over from booting.
Disabled by default on AMD because some BIOS leave bogus ones.
If your BIOS doesn't do that it's a good idea to enable though
to make sure you log even machine check events that result
in a reboot. On Intel systems it is enabled by default.
mce=nobootlog
Disable boot machine check logging.
mce=tolerancelevel[,monarchtimeout] (number,number)
tolerance levels:
0: always panic on uncorrected errors, log corrected errors
1: panic or SIGBUS on uncorrected errors, log corrected errors
2: SIGBUS or log uncorrected errors, log corrected errors
3: never panic or SIGBUS, log all errors (for testing only)
Default is 1
Can be also set using sysfs which is preferable.
monarchtimeout:
Sets the time in us to wait for other CPUs on machine checks. 0
to disable.

nomce (for compatibility with i386): same as mce=off

Everything else is in sysfs now.

Root Cause
The cron job will regenerate mcelog in /var/log/mcelog, so jus sop the mcelogd
service is not enough.
After adding mce=of in the kernel parameter line, /usr/sbin/mcelog command cannot
be run any more.

https://access.redhat.com/solutions/367773[8/21/2017 2:31:07 PM]


How do I disable MCE function? - Red Hat Customer Portal

Raw

$ cat /etc/cron.hourly/mcelog.cron
#!/bin/bash
/usr/sbin/mcelog --ignorenodev --flter >> /var/log/mcelog

Product(s)
Red Hat Enterprise Linux Component
kernel Category
Learn more

Tags
events
hardware
management
panic
performance_tuning

This solution is part of Red Hats fas-track publication program, providing a huge library of
solutions that Red Hat engineers have created while supporting our cusomers. To give you
the knowledge you need the insant it becomes available, these articles may be presented in
a raw and unedited form.

Comments

15 Points

Formatting Help
Submit comment

QUICK LINKS HELP SITE INFO ABOUT RELATED


SITES

Downloads Contact Us Browser Red Hat

https://access.redhat.com/solutions/367773[8/21/2017 2:31:07 PM]


How do I disable MCE function? - Red Hat Customer Portal

Support Subscription
Policy Value RedHat.com
Subscriptions Cusomer
Portal FAQ
Data About Red JBoss.org
Support
Cases Cusomer Management Hat
Portal Status Policy OpenShift.com
Cusomer Red Hat Jobs
Service Log-in Accessibility Developers.Red
Assisance
Product Awards and Red Hat
Documentation Recognition Partner
Connect
Colophon

Privacy Policy
Cusomer Portal Terms of Use
All Policies and Guidelines


Copyright 2017 Red Hat, Inc.

https://access.redhat.com/solutions/367773[8/21/2017 2:31:07 PM]

Anda mungkin juga menyukai