Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp482503ybk; Wed, 13 May 2020 05:21:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNx8c6ODSoIZR6ihqQaJPL1xSkh5KhEHnOexxbxUNM+OE8hIRTD9b+o5yzwjZad8CWekf3 X-Received: by 2002:a05:6402:1d2d:: with SMTP id dh13mr9769060edb.169.1589372510667; Wed, 13 May 2020 05:21:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589372510; cv=none; d=google.com; s=arc-20160816; b=Fs3e0BsrlR8kU1TOXPG+ySiCwLypRLJk7XZpsGLJjuehleoE5M4vV2fs50KZwVdT29 s4qOT8+m+W9pw9QslZlPkxdUrw23sDNS8MayMbQioWvFwyDfWLm/mfTldrwwxUgTmyl1 4aXe9aZ1vUYIK6I5nYk2IiQpZrCvS/MrvbEDoJWvo+diKvR0iqQ5xPgWeOtcNu9BWI5d nOL07BM1Jyz6+vaTUyJkY/sCLFggdVLyCG8F2HLmnqO+xjKUGYovIm8lhktLq6AoVKNC eBVSgBhTdVUSdYNyOMsv22FypkrG3j+edgZ15yja8Ii6TRn2u8jWgYSvtzUgTPe4y96g m9QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=UTjrDIZkMBaY3z9k3TwUie+ZgatOOYI6Yo6ipeqYpZU=; b=b+dghnPgJXVuKJxPySgyx/72m61nykMWQBdBaEHFtczNmhUCD8oPUKJZ5vTBD9m+ha XFrxDEpwOeGoWLL6HIPAAsFVZV2a0Oq+cpIM+kGUozAgKU77ZR7VfjcGbBLqXAk5t+2K HqjAC0knnTHMTcpMoZDOo2v7H6CZIQKggjZUt4zUh73ItQarpAlAt3MD8t2dDPBZFwjq I/fp2CQBkaX72IoYeLtas/Ra4heAJDdCzVGyo6IiBzNwmoRtj5EznOG+8RWz92RZpNlI 92gdvdvuGvWp5w5nQSq/q25ZDIjgQQoRNeCXQ+bAoKwnlKvvwjq66srQbW12OaVFZMUB vi9Q== 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 g12si9345693ejw.314.2020.05.13.05.21.27; Wed, 13 May 2020 05:21:50 -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 S1731762AbgEMMTq (ORCPT + 99 others); Wed, 13 May 2020 08:19:46 -0400 Received: from mx2.suse.de ([195.135.220.15]:42272 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726020AbgEMMTq (ORCPT ); Wed, 13 May 2020 08:19:46 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 5D36DAF4C; Wed, 13 May 2020 12:19:47 +0000 (UTC) Date: Wed, 13 May 2020 14:19:42 +0200 From: Petr Mladek To: Tetsuo Handa Cc: Michal Hocko , Sergey Senozhatsky , Steven Rostedt , linux-kernel@vger.kernel.org, Dmitry Safonov , Yafang Shao Subject: Re: [PATCH] printk: Add loglevel for "do not print to consoles". Message-ID: <20200513121942.GK17734@linux-b0ei> References: <20200428154532.GU28637@dhcp22.suse.cz> <20200429142106.GG28637@dhcp22.suse.cz> <20200513062652.GM413@jagdpanzerIV.localdomain> <20200513100413.GH17734@linux-b0ei> <20200513104938.GW29153@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 2020-05-13 20:24:24, Tetsuo Handa wrote: > On 2020/05/13 19:49, Michal Hocko wrote: > > On Wed 13-05-20 12:04:13, Petr Mladek wrote: > >> What is so special about OOM dump task so that it would deserve such > >> complications? > I don't think dump_tasks() is important information to be printed on consoles. > But since somebody might think dump_tasks() is important information to be > printed on consoles, I suggest switching KERN_NO_CONSOLES using e.g. sysctl. You might achieve the same with DEBUG loglevel. Or do I miss anything? > There is per-console loglevel proposal (which allows selecting "some" console > backends). But it is based on KERN_$LOGLEVEL which is too rough-grained. IMHO, developers already have troubles to decide between the existing 8 loglevels. And it is easier because the names describe the severity. NO_CONSOLES would be different. The effect is almost[*] clear. But only few people would know the background why it was introduced and where to use it. I know that it is meant as a modifier, like LOGLEVEL_SCHED and KERN_CONT. But this is another reason to avoid it. We already have huge pain with these two modifiers. They both do not work well. [*] It will have no effect when it was disabled by a sysfs knob. Best Regards, Petr