Re: [PATCH 2/2 v2] mm: print out information of file affected bymemory error

From: Andrew Morton
Date: Tue Nov 06 2012 - 17:52:12 EST


On Tue, 6 Nov 2012 17:45:05 -0500
Naoya Horiguchi <n-horiguchi@xxxxxxxxxxxxx> wrote:

> > "should be" and "unlikely" aren't very reassuring things to hear!
> > Emitting a million lines into syslog is pretty poor behaviour and
> > should be reliably avoided.
>
> So capping maximum lines of messages per some duration (a hour or a day)
> is a possible option. BTW, even if we don't apply this patch, the kernel
> can emit million lines of messages in the above-mentioned situation because
> each memory error event emits a message like "MCE 0x3f57f4: dirty LRU page
> recovery: Ignored" on syslog. If it's also bad, we need to do capping
> also over existing printk()s, right?

Yes, that sounds like a bug report waiting to happen.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/