andikleen / mcelog

Linux kernel machine check handling middleware
http://www.mcelog.org
GNU General Public License v2.0
137 stars 63 forks source link

mcelog triggers not firing? #5

Open ejones71 opened 11 years ago

ejones71 commented 11 years ago

Hi Andi. Thanks for mcelog.

I am injecting errors with mce-inject, but I can see no evidence that triggers are being executed. Built mcelog from latest git. Injected many many mces (threshold is 10/24h).

Should I expect triggers to work when injecting fake mces?

I created .local triggers for dimm/socket/page which touched files in /tmp, wrote to /proc/kmsg, etc. Nothing appeared. I ran "strace -f mcelog" and see no evidence that it forks any triggers.

cat m1 CPU 0 BANK 4 STATUS CORRECTED ADDR 0xabcd

mce-inject < m1 #ran this command dozens of times.

Kernel: 3.0.42

/etc/mcelog/mcelog.conf: daemon = yes
filter = yes
raw = yes
syslog = no
no-syslog = yes
logfile = /dev/kmsg [server] client-user = root [dimm] dimm-tracking-enabled = yes dmi-prepopulate = yes uc-error-threshold = 1 / 24h ce-error-threshold = 10 / 24h [socket] socket-tracking-enabled = yes mem-uc-error-threshold = 10 / 24h mem-ce-error-trigger = socket-memory-error-trigger mem-ce-error-threshold = 10 / 24h mem-ce-error-log = yes [cache] cache-threshold-trigger = cache-error-trigger cache-threshold-log = yes [page] memory-ce-threshold = 10 / 24h memory-ce-trigger = page-error-trigger memory-ce-log = yes memory-ce-action = soft-then-hard [trigger] children-max = 2 directory = /etc/mcelog

andikleen commented 11 years ago

On Fri, Jan 11, 2013 at 04:47:33PM -0800, ejones71 wrote:

Hi Andi. Thanks for mcelog.

I am injecting errors with mce-inject, but I can see no evidence that triggers are being executed. Built mcelog from latest git. Injected many many mces (threshold is 10/24h).

Should I expect triggers to work when injecting fake mces?

Yes.

I created .local triggers for dimm/socket/page which touched files in /tmp, wrote to /proc/kmsg, etc. Nothing appeared. I ran "strace -f mcelog" and see no evidence that it forks any triggers.

There's a test case for triggers in the test suite. Does that work for you?

-Andi

ejones71 commented 11 years ago

Andi,

I have triggers working with mce-inject. I needed to add status bits get past the test in intel_memory_error()

STATUS: CORRECTED 128

Thanks again.