Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp868030pxy; Wed, 5 May 2021 16:21:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzSdheWH1FSQrCvPvktS661cuDVgsbxFGpyZVsn5kKem0p6bi2oJ+AicdZQ6XBwYaBWUDT X-Received: by 2002:a05:6402:4242:: with SMTP id g2mr1494707edb.329.1620256911065; Wed, 05 May 2021 16:21:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620256911; cv=none; d=google.com; s=arc-20160816; b=eZuwsSWIc00N3DG14/H1vmEkZND/whdWNuDWlte2hrPeJ55d59MipoMfTK+aUpNhdm 8xWhZhy8otNapVZaKXE0nL0t0gjq6PUb/4xOYAEtBEZdwRSWV8yf7FKz69AxL9VhhRh5 LgYLGcp6ZWWhWvoP0t038VOza3aGQi7ZR1IJ3JN5LcmKVPmbLWuYk4OPZfbUgfbKB2Un 4WtOxEBOY20CxsVM4qCLstiri0D1DlVAXiDfoYy+7bmc/yaPm+UjmpiogtlNBPnXUIaN ILFvxnVhjfvcSSaYvxPzNg4CxIraeoa826LJGIyzuz1tgm7I3QEE1unt1dgKKunVkLpl grGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-filter; bh=Lq9GMPC1OAbG9MC4A6dXXKYcRIfgiNTw6E8T5BWsHts=; b=DTrJk/WAw0JkZV/iH+EB8BgxCOfrJYpCQRiVz56BTnrFonJZi2aDrwmOaFra5eYkFw BZG5QfGtdzdDKInVC9Djm7zHi5aP/4nTkKC1SyE70lhrUimBjCw+Nh8vJbLrwhyxRqy/ vKoYnLKzJgFsM4mA+iH6G7XsfNfcgMkViwSG+wqY5DiEi1MH9jZcIp0tz5FlMu7EYMw0 yejjLU1v3oldX2gXc2QKtaWospiyHVHLzJ1Pj7V9C86f2k13gcX1+4mf25TPiZKLyelS 31+Yhg9AcoOqG/rws2EFZ1hQQASykHWIc1G2ynYjtGxxylzihWJ3SA17PojN9S0OI64Z 4Biw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=QjIfl8kA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u18si649481ejn.572.2021.05.05.16.21.27; Wed, 05 May 2021 16:21:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=QjIfl8kA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229645AbhEEVtq (ORCPT + 99 others); Wed, 5 May 2021 17:49:46 -0400 Received: from linux.microsoft.com ([13.77.154.182]:44284 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbhEEVtp (ORCPT ); Wed, 5 May 2021 17:49:45 -0400 Received: from sequoia (162-237-133-238.lightspeed.rcsntx.sbcglobal.net [162.237.133.238]) by linux.microsoft.com (Postfix) with ESMTPSA id D660220B7178; Wed, 5 May 2021 14:48:47 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com D660220B7178 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1620251328; bh=Lq9GMPC1OAbG9MC4A6dXXKYcRIfgiNTw6E8T5BWsHts=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QjIfl8kAu4zuy6l3rZpzPRQP94JtUMbP2G/6WsZtKmnNjH0NV8iZUTtUwgBGZODwj nLtPVFuwNnjglJSrxoVnkgPoAqbxxLBgj+z8+hlFjbbBXoXp3oRSVPkIGeyu3lSpAQ 3JBydhlQ34ArzzP1BtY5LmmNVM2kpmJZg8SNuu2I= Date: Wed, 5 May 2021 16:48:46 -0500 From: Tyler Hicks To: Borislav Petkov Cc: wangglei , "Lei Wang (DPLAT)" , "mchehab@kernel.org" , "tony.luck@intel.com" , "james.morse@arm.com" , "rric@kernel.org" , "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Hang Li , Brandon Waller Subject: Re: [EXTERNAL] Re: [PATCH] EDAC: update edac printk wrappers to use printk_ratelimited. Message-ID: <20210505214846.GE4967@sequoia> References: <20210505173027.78428-1-wangglei@gmail.com> <20210505202357.GC4967@sequoia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-05-05 23:04:44, Borislav Petkov wrote: > On Wed, May 05, 2021 at 03:23:57PM -0500, Tyler Hicks wrote: > > Would it be any more acceptable to add an > > edac_mc_printk_ratelimited() macro, which uses printk_ratelimited(), > > and then call that new macro from edac_ce_error()? > > You guys are way off here: the intent of EDAC drivers is to accurately > report errors for purposes of counting them and doing analysis on > that collected data as to whether components are going wrong - not to > ratelimit them as some nuisance output. > > With breaking the EDAC reporting, you're barking up the wrong tree - if > you don't want to see those errors, do not load the drivers. It is that > simple. As I understand it, the idea here wasn't to treat the log messages as a nuisance that should be completely squelched. The counters are monitored and provide the definitive way to detect large scale problems but the CE log messages can be an easier-to-discover way for humans to identify potential problems when, for example, centralized log aggregation and indexing is in place. The thought was that the full stream of log messages isn't necessary to notice that there's a problem when they are being emitted at such a high rate (500 per second). They're just filling up disk space and/or wasting networking bandwidth at that point. Of course, the best course of action here is to service the machine but there's still a period of time between the CE errors popping up and the machine being serviced. Tyler