From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752636AbdCHKfz (ORCPT ); Wed, 8 Mar 2017 05:35:55 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:34273 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751291AbdCHKff (ORCPT ); Wed, 8 Mar 2017 05:35:35 -0500 Date: Wed, 8 Mar 2017 11:28:29 +0100 From: Ingo Molnar To: Mike Travis Cc: Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Don Zickus , Peter Zijlstra , Dimitri Sivanich , Frank Ramsay , Russ Anderson , Tony Ernst , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] x86/platform: Add a low priority low frequency NMI call chain Message-ID: <20170308102829.GA11864@gmail.com> References: <20170306181737.059578494@asylum.americas.sgi.com> <20170306181737.322206440@asylum.americas.sgi.com> <20170307074210.GA24782@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Mike Travis wrote: > > > On 3/6/2017 11:42 PM, Ingo Molnar wrote: > > > > * Mike Travis wrote: > > > >> Add a new NMI call chain that is called last after all other NMI handlers > >> have been checked and did not "handle" the NMI. This mimics the current > >> NMI_UNKNOWN call chain except it eliminates the WARNING message about > >> multiple NMI handlers registering on this call chain. > >> > >> This call chain dramatically lowers the NMI call frequency when high > >> frequency NMI tools are in use, notably the perf tools. It is required > >> for NMI handlers that cannot sustain a high NMI call rate without > >> ramifications to the system operability. > > > > So how about we just turn off that warning instead? I don't remember the last time > > it actually _helped_ us find any kernel or hardware bug - and it has caused tons > > of problems... > > I can do that, with an even simpler patch... > > > > > It's not like we warn about excess regular IRQs either - we either handle them or > > at most increase a counter somewhere. We could do the same for NMIs: introduce a > > counter somewhere that counts the number of seemingly unhandled NMIs. > > Really "unknown" NMI errors are reported by either the "dazed and > confused" message or if the panic on unknown nmi is set, then the > system will panic. So unknown NMI occurrences are already being > dealt with. So I'd even remove the 'dazed and confused' message - has it ever helped us? If NMIs are generated but not handled properly then developers and users will notice it just like when IRQs are lost: either through bad system behavior or via weird stats in procfs. The kernel log should not get spammed. So if you could expose the lost NMI stats via procfs or debugfs then we could remove both the warning and the dazed-and-confused spam on the system log. This should make perf all around more usable on UV systems, right? Thanks, Ingo