Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3878963imm; Mon, 15 Oct 2018 05:47:56 -0700 (PDT) X-Google-Smtp-Source: ACcGV610JxaR2ktt8JH/cQRWn2iqZufNlRI66cZTIsbegfgw8uHhGkfCS2D8an+IT8jJsKbxnahy X-Received: by 2002:a62:6346:: with SMTP id x67-v6mr8602355pfb.234.1539607676798; Mon, 15 Oct 2018 05:47:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539607676; cv=none; d=google.com; s=arc-20160816; b=jclC6Em/kWCoCh8+bOvK87GOTcWXOxhhiKKaRjeJZpg8O4ShHpv8Ug9JGP6RyAWemc NyMiLIrS0pHpwogPiANxs9UiUFTOH2n3pL6Z1mejBI2Bef3ubYWxb7uGyuCk605tXS9C gIXpGsaap42/EPOVdR0i85RYWyJ5J2hilEwlLHnfDEtjyOxYzg9V4od5KdEMGqQ5zrJ/ Uc7st+VodeL4OmOqfxXrqdVSbut0VM53aHTLvg7AEGVC59rEQBHKbbv7tsjZ7sSJR/QZ 05O/kVjfqjlCbfi7BM2Zk9oxqoHXOIHsVuF7fasqj+nejkB3tN9QE7aXI6Xyd1E+2mF9 3/wg== 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=rGQOnr49zxd3bp8Xrguv8Dp+EFkdRfUd3BG+5FUxZi8=; b=J7AKteGdW9cd5NRjZf5PwEo4O7hbW/axow1Zb4UsGVZUACS5BHabOGC5dasCkUHlv5 L95SRwQuv6m2rLjJ6QR5ZPEqCCzy06xX9WQ2PggPbXTCEbzqeDtNtRhkrT83S0EpX347 ll6T+JtSbVnIILNz4aJjxboQ1r7L3hXmm7lEm067TquRFst8NMtzmzoY9mei+iGcqz6+ w3kdFSYoPNPzRbf10IuLdmaSGHCL3tJMmRZ4PUSvx1XNH6EpW9h1kqVa5KjpA1elNdQ/ P8YX7WCpQOLSRd3l2MUEIGjvSDex3KmDmppZlen97EIljvUO4iSVJD8wVatD9HKM19RA /W2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p9-v6si8005555pfe.76.2018.10.15.05.47.42; Mon, 15 Oct 2018 05:47:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726562AbeJOUc2 (ORCPT + 99 others); Mon, 15 Oct 2018 16:32:28 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:33551 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726319AbeJOUc2 (ORCPT ); Mon, 15 Oct 2018 16:32:28 -0400 Received: from fsav103.sakura.ne.jp (fsav103.sakura.ne.jp [27.133.134.230]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id w9FClEhF091008; Mon, 15 Oct 2018 21:47:14 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav103.sakura.ne.jp (F-Secure/fsigk_smtp/530/fsav103.sakura.ne.jp); Mon, 15 Oct 2018 21:47:14 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/530/fsav103.sakura.ne.jp) Received: from [192.168.1.8] (softbank060157066051.bbtec.net [60.157.66.51]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id w9FClAgN090934 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 15 Oct 2018 21:47:14 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: Re: [RFC PATCH] memcg, oom: throttle dump_header for memcg ooms without eligible tasks To: Michal Hocko Cc: Johannes Weiner , linux-mm@kvack.org, syzkaller-bugs@googlegroups.com, guro@fb.com, kirill.shutemov@linux.intel.com, linux-kernel@vger.kernel.org, rientjes@google.com, yang.s@alibaba-inc.com, Andrew Morton , Sergey Senozhatsky , Petr Mladek , Sergey Senozhatsky , Steven Rostedt References: <20181012112008.GA27955@cmpxchg.org> <20181012120858.GX5873@dhcp22.suse.cz> <9174f087-3f6f-f0ed-6009-509d4436a47a@i-love.sakura.ne.jp> <20181012124137.GA29330@cmpxchg.org> <0417c888-d74e-b6ae-a8f0-234cbde03d38@i-love.sakura.ne.jp> <20181013112238.GA762@cmpxchg.org> <20181015081934.GD18839@dhcp22.suse.cz> <20181015112427.GI18839@dhcp22.suse.cz> From: Tetsuo Handa Message-ID: <6c0a57b3-bfd4-d832-b0bd-5dd3bcae460e@i-love.sakura.ne.jp> Date: Mon, 15 Oct 2018 21:47:08 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181015112427.GI18839@dhcp22.suse.cz> 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 2018/10/15 20:24, Michal Hocko wrote: > On Mon 15-10-18 19:57:35, Tetsuo Handa wrote: >> On 2018/10/15 17:19, Michal Hocko wrote: >>> As so many dozens of times before, I will point you to an incremental >>> nature of changes we really prefer in the mm land. We are also after a >>> simplicity which your proposal lacks in many aspects. You seem to ignore >>> that general approach and I have hard time to consider your NAK as a >>> relevant feedback. Going to an extreme and basing a complex solution on >>> it is not going to fly. No killable process should be a rare event which >>> requires a seriously misconfigured memcg to happen so wildly. If you can >>> trigger it with a normal user privileges then it would be a clear bug to >>> address rather than work around with printk throttling. >>> >> >> I can trigger 200+ times / 900+ lines / 69KB+ of needless OOM messages >> with a normal user privileges. This is a lot of needless noise/delay. > > I am pretty sure you have understood the part of my message you have > chosen to not quote where I have said that the specific rate limitting > decisions can be changed based on reasonable configurations. There is > absolutely zero reason to NAK a natural decision to unify the throttling > and cook a per-memcg way for a very specific path instead. > >> No killable process is not a rare event, even without root privileges. >> >> [root@ccsecurity kumaneko]# time ./a.out >> Killed >> >> real 0m2.396s >> user 0m0.000s >> sys 0m2.970s >> [root@ccsecurity ~]# dmesg | grep 'no killable' | wc -l >> 202 >> [root@ccsecurity ~]# dmesg | wc >> 942 7335 70716 > > OK, so this is 70kB worth of data pushed throug the console. Is this > really killing any machine? > Nobody can prove that it never kills some machine. This is just one example result of one example stress tried in my environment. Since I am secure programming man from security subsystem, I really hate your "Can you trigger it?" resistance. Since this is OOM path where nobody tests, starting from being prepared for the worst case keeps things simple.