RE: [PATCH 2/2] x86/mce: Add mce=panic_on_ce_count to panic on a corrected error flood
"Luck, Tony" <[email protected]>
| Newsgroups | org.kernel.vger.linux-doc,org.kernel.vger.linux-edac,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <SJ1PR11MB60837D32B5D89336C87280A3FCAF2@SJ1PR11MB6083.namprd11.prod.outlook.com> |
> > I chatted with someone internally. They'd be very interested in being > > able to see these running counts via some /sys files. > > > > Perhaps your use case would be better for that too? Rather than: > > > > "Everything is fine" > > Sounds good, I will restructure v2 that way: export the running counts > first, and add the panic on top as a separate patch. > > The count is already kept per CPU and per bank in struct storm_bank, so > the natural fit is one read-only file per bank, next to the existing > bank<N> knobs: > > /sys/devices/system/machinecheck/machinecheckX/ce_count<N> > > Is this the right approach? Breno, Yes, that looks like a natural place to expose the running counts. I'd argue that the files should be read/write. My rationale is that corrected error counts may be increasing slowly over time for transient errors caused by particle strikes. If a system runs for many months, it might reach the threshold and trigger a panic. Allowing the system administrator to zero the counts would avoid this. -Tony