Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2380pxu; Tue, 1 Dec 2020 04:54:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzlOLycjcKNrsTuhJBit9ORvnxnzN3n+cBD/BIwNLjau4WVBzIDLjMIVTlJl9cwl5RR/5kD X-Received: by 2002:a17:906:2a0a:: with SMTP id j10mr2853920eje.307.1606827250432; Tue, 01 Dec 2020 04:54:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606827250; cv=none; d=google.com; s=arc-20160816; b=FxEFaEY+hy1aeM4r4YS59Be4WtrerJsMBhpfAJNp/id/keA6q/k/DaKI0kOmbOn4Uo 1bXsJhBTJzKRCW2YU6HpAeCoIWlufAb3U8h67qhCO94h1ULJAJI1xt/O20yFPF8JT0SJ yUxcWPz5ODhAsW2Gc0LTaVN9DxSFvHwNVF0D9CKZWNLXeEjQszoqFcVR343pcdCRGt1y kcd1pFUZyn2WcgJKagN9niRRON2KV9igL6w41Nyam8YBQmw+21l8wvapz5gIp3jjWVx4 V3JUHd1GDEZFl3abHnhr7d097uZ2Shc/OuEsqTRRFifF/9Kd/sU8nWpqHD2v532r2v6U PfRQ== 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; bh=qBFHb/HGCw5HLKcQo//54wObYejkH5zsQzmJIUfBbac=; b=XBADEwsWcnE/A6y4/IbA8zsLhgswunB7WZQnPA2AwP3MrVb3GVZYB8IzsFEsPtZm9q s+4K8ipWzk869FYyHggzeNt3XkyPH5Ht9CtBBm0Ow/BoVmW6T7jsHFCC/6EdD+ThDpSE nFDFFu19W4Crtmk97WT7bHuGV7BfRfcPOTU2NGfbP/4T18H6h3n/94EcRcx1RAK7bmUo jLf8f+0MJ9aJiWKWVeGvEfxtsxOdhBMDoW1d4IRgLw7hTQQ8hHQH4zYDXotjo/1GkJVv vYv64b9kqavcrlii8eIhaWgOu2ifQAkF3d+P83+CHd2oDrp3hecxV35Rp+BBFczMoXrX pfcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=hDTKSNF4; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q23si1316566edb.184.2020.12.01.04.53.47; Tue, 01 Dec 2020 04:54:10 -0800 (PST) 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=@suse.com header.s=susede1 header.b=hDTKSNF4; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391016AbgLAMu2 (ORCPT + 99 others); Tue, 1 Dec 2020 07:50:28 -0500 Received: from mx2.suse.de ([195.135.220.15]:33688 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389263AbgLAMu2 (ORCPT ); Tue, 1 Dec 2020 07:50:28 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1606826982; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qBFHb/HGCw5HLKcQo//54wObYejkH5zsQzmJIUfBbac=; b=hDTKSNF4dgx9ZjzgDwcWgcaO/vK5Jpw+Hy1cNLLkkZ+SjrUsOG5tSZbApzMIxAo/0kGy4h EqrDdfBm3mq34u2l6MEavDsLm1mZbGsrxg4W4n6nZKadJxazeI2v3VLsoockBhpfsdr3Wx q0+Rricx0l0YkyUIqpSicB3aP72CN/Q= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 10E83ACC1; Tue, 1 Dec 2020 12:49:42 +0000 (UTC) Date: Tue, 1 Dec 2020 13:49:41 +0100 From: Petr Mladek To: Paul Gortmaker Cc: Andi Kleen , linux-kernel@vger.kernel.org, Sergey Senozhatsky , Steven Rostedt , John Ogness Subject: Re: [PATCH 0/3] clear_warn_once: add timed interval resetting Message-ID: References: <20201126063029.2030-1-paul.gortmaker@windriver.com> <20201130030828.GA1363814@tassilo.jf.intel.com> <20201130173842.GB26693@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201130173842.GB26693@windriver.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 2020-11-30 12:38:43, Paul Gortmaker wrote: > [Re: [PATCH 0/3] clear_warn_once: add timed interval resetting] On 29/11/2020 (Sun 19:08) Andi Kleen wrote: > > > On Thu, Nov 26, 2020 at 01:30:26AM -0500, Paul Gortmaker wrote: > > > But you currently can't make use of clear_warn_once unless you've got > > > debugfs enabled and mounted - which may not be desired by some people > > > in some deployment situations. > > > > Seems awfully special purpose. The problem with debugfs is security, > > or is it no convenient process that could do cron like functionality? > > My understanding is that it is a bit of both. As users of rt tasks, > they won't be running anything like cron that could add to OS jitter on > the (presumably minimal) rootfs - so they were looking for a clean > engineered solution with near zero overhead, that they could easily > deploy on all nodes after the rt tuning was 99% completed and node > images had been bundled. Just to be sure everything was operating as > they'd aimed to achieve. Is this feature requested by RT people? Or is it just a possible use-case? I am not sure that RT is a really good example. The cron job is only part of the problem. The message would create a noise on its own. It would be shown on console or read/stored by a userspace log daemon. I am not sure that RT people would really want to use this. That said, I still do not have strong opinion about the feature. It might make sense on its own. But I still see it as a workaround for another problem. Non-trivial periodic tasks sometimes cause problems. And we do not know how big avalanche of messages it might restart. Also the once is sometimes used on purpose. It prevents repeated delays on fast paths. I wonder if it can sometimes even prevent recursion. I know that everything is possible already now. But this patchset makes it more visible and easier to use. Best Regards, Petr