From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 46049C54FD0 for ; Fri, 24 Apr 2020 15:18:36 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 0AB27206B9 for ; Fri, 24 Apr 2020 15:18:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0AB27206B9 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 7E2CD8E0005; Fri, 24 Apr 2020 11:18:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7B99B8E0003; Fri, 24 Apr 2020 11:18:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6D0538E0005; Fri, 24 Apr 2020 11:18:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0158.hostedemail.com [216.40.44.158]) by kanga.kvack.org (Postfix) with ESMTP id 558B58E0003 for ; Fri, 24 Apr 2020 11:18:35 -0400 (EDT) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 13B95180AD817 for ; Fri, 24 Apr 2020 15:18:35 +0000 (UTC) X-FDA: 76743105390.12.note37_4ae989060f54b X-HE-Tag: note37_4ae989060f54b X-Filterd-Recvd-Size: 2792 Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by imf04.hostedemail.com (Postfix) with ESMTP for ; Fri, 24 Apr 2020 15:18:34 +0000 (UTC) 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 88526ACB8; Fri, 24 Apr 2020 15:18:31 +0000 (UTC) Date: Fri, 24 Apr 2020 17:18:30 +0200 From: Michal Hocko To: Steven Rostedt Cc: Tetsuo Handa , Yafang Shao , Andrew Morton , Roman Gushchin , linux-mm , David Rientjes , Shakeel Butt , Sergey Senozhatsky , Petr Mladek Subject: Re: [nacked] mm-oom-avoid-printk-iteration-under-rcu.patch removed from -mm tree Message-ID: <20200424151830.GJ11591@dhcp22.suse.cz> References: <041d4158-f3dc-a5b5-546e-dd3f71f67b5f@i-love.sakura.ne.jp> <20200422065950.GA30312@dhcp22.suse.cz> <0aa5e490-c5b8-dc5c-334e-9a8d37da215c@i-love.sakura.ne.jp> <20200423073438.GC4206@dhcp22.suse.cz> <20200423110707.GD4206@dhcp22.suse.cz> <20200423140646.GF4206@dhcp22.suse.cz> <20200424090230.404ed12b@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200424090230.404ed12b@gandalf.local.home> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Fri 24-04-20 09:02:30, Steven Rostedt wrote: > On Thu, 23 Apr 2020 16:06:46 +0200 > Michal Hocko wrote: > > > > If we can agree with not printing dump_tasks() output to consoles, a trivial > > > patch shown below will solve the problem. Those who cannot run syslog daemon > > > in userspace might disagree, but this will be the simplest answer. > > > > Talk to printk people about this. > > Please no! > > Usually when the system runs out of memory, I have no access to a shell, > and the oom output to the console may be the only information I can use to > debug the situation. Well, as I've said in other email, what belongs to console is a matter of userspace policy which should be based on the loglevel [1]. Whether a concept of a loglevel or some other means to tell that this is a large bag of output that doesn't have the top priority and printk would do something clever about that is a question for you (printk maintainers). [1] http://lkml.kernel.org/r/20200423143550.GH4206@dhcp22.suse.cz -- Michal Hocko SUSE Labs