Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp555986ybk; Wed, 13 May 2020 07:08:53 -0700 (PDT) X-Google-Smtp-Source: APiQypKEk8wXc8dUmeTNLLDnZ+HdnLIvyS5GBYoAOF/CWBPybZJ9Ro8kEmwzsKChQjoJHqdTi4Hi X-Received: by 2002:a17:906:391:: with SMTP id b17mr22000522eja.91.1589378933112; Wed, 13 May 2020 07:08:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589378933; cv=none; d=google.com; s=arc-20160816; b=KVDEV1fEW3B51zqpi8CAU82alnQjJo+5FQKgA8CwsZtII4OpNKlxOdUwb4DEdUMngK UIneVC3j9LT24JRYi1swQQ91hhutRxA0tHtAxFI/OPvyel+un+a3E0xPCAMEKOteqA04 AH9wf4cMZQGWWYU+Pax7M3Uph+fuIcc41+JEPTp1PMd55ZwopA/d90NFtrTXz11gZZHG XPdIrMkw/m/F/SlOiZ7e/ey5bailoGCV8WhSym0sPV3JBab+XiSEj8XpKIW/IwyoYzWd gmefh1T+/GkKRtDyBh81FEckrhpmGKiRPghUhnGg0zqN7NLpz0bmCPkWNgyZPq7DyvTg jr5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=ICAmGhWIEr/Kwe76Qv/jkJf6B/RxHnvQit2SCmf4uYw=; b=KbPRmzqHOc4pYJrs/wgNdcgRISBouUJ0ZwzQ7hb/NhgaSdZp8sp5PSabSxMc1lYS4Q UWVaKblBI3COEcwR3mAd0MICqjv39CwHEfWQwsYyZqZhdt2Vd7SAloYSlhGqrY96tbLe i/Y9RU7HGGtMztJyF4pUQKGdGSiOqPeEE+RoW8hqejmrcnIo4kwW2UALyd/oWYFXG8D0 +l/T2nvaW1RKbyobinlddG79g2EwppmwD3e7g5awSJy643SVQ0ghEyA9/xF9wMHStW2i omFN4fZaL6tENd4ROSoV1AhKwxwm0e1lTM7OVSBWuw7lW8T51ss3EUSXdoBpstNxCzM7 a8lw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bc23si9383801edb.241.2020.05.13.07.08.29; Wed, 13 May 2020 07:08:53 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388804AbgEMOEE (ORCPT + 99 others); Wed, 13 May 2020 10:04:04 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:55136 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388325AbgEMOED (ORCPT ); Wed, 13 May 2020 10:04:03 -0400 Received: from fsav302.sakura.ne.jp (fsav302.sakura.ne.jp [153.120.85.133]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 04DE3MOo098927; Wed, 13 May 2020 23:03:22 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav302.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav302.sakura.ne.jp); Wed, 13 May 2020 23:03:22 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav302.sakura.ne.jp) Received: from [192.168.1.9] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 04DE3LDg098920 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 13 May 2020 23:03:21 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: Re: [PATCH] printk: Add loglevel for "do not print to consoles". To: Steven Rostedt Cc: Petr Mladek , Sergey Senozhatsky , Michal Hocko , linux-kernel@vger.kernel.org, Dmitry Safonov , Yafang Shao References: <20200427062117.GC486@jagdpanzerIV.localdomain> <4dae86af-1d9a-f5a8-cff6-aa91ec038a79@i-love.sakura.ne.jp> <20200428121828.GP28637@dhcp22.suse.cz> <20200428154532.GU28637@dhcp22.suse.cz> <20200429142106.GG28637@dhcp22.suse.cz> <20200513062652.GM413@jagdpanzerIV.localdomain> <20200513100413.GH17734@linux-b0ei> <20564555-7b84-f716-5dcd-978f76ad459a@i-love.sakura.ne.jp> <20200513094642.56bf50f7@gandalf.local.home> From: Tetsuo Handa Message-ID: <355d1700-4d33-4604-4187-27fd994bf473@i-love.sakura.ne.jp> Date: Wed, 13 May 2020 23:03:19 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200513094642.56bf50f7@gandalf.local.home> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/05/13 22:46, Steven Rostedt wrote: > On Wed, 13 May 2020 20:03:53 +0900 > Tetsuo Handa wrote: > >> I think that basically only oops (e.g. WARN()/BUG()/panic()) messages worth >> printing to consoles and the rest messages do not worth printing to consoles. >> Existing KERN_$LOGLEVEL is too rough-grained. > > And this statement is exactly why I believe you are wrong. > > Because *I* think messages to the console is more important than messages > to the logs. Several of my servers are only monitored by the console. I > seldom look at the logs on those machines. As a technical staff at a support center, I can never monitor the consoles of customer's servers. I can examine only syslog messages saved as /var/log/messages . > > This is a policy decision, and must be made by user space. Your use case is > not applicable to everyone else's use case. And should not be set in stone > by the kernel. My proposal does not set in stone by the kernel. My proposal is gives users a chance to control whether to print to consoles. On 2020/05/13 22:55, Steven Rostedt wrote: > On Wed, 13 May 2020 20:03:53 +0900 > Tetsuo Handa wrote: > >> I think that basically only oops (e.g. WARN()/BUG()/panic()) messages worth >> printing to consoles and the rest messages do not worth printing to consoles. >> Existing KERN_$LOGLEVEL is too rough-grained. > > Why don't you look into having a "noconsole" command line option that will > not print anything to the consoles but oops messages. I can't force customers to use "noconsole" command line option. That's a too rough-grained boolean. > > Sounds more like what you would like, and something that perhaps would be > acceptable by the larger community.