Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5037000imm; Tue, 16 Oct 2018 04:17:56 -0700 (PDT) X-Google-Smtp-Source: ACcGV62wK9WVmN3lKHyLcXW9WuOs1n85GXKiqvORM9uKIWZdPh7u5r/8KC5bl1eUH6NdXhw7nxTB X-Received: by 2002:a63:5605:: with SMTP id k5-v6mr20059392pgb.189.1539688676266; Tue, 16 Oct 2018 04:17:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539688676; cv=none; d=google.com; s=arc-20160816; b=JQHDhqlL9NHuTO6PKMFsC563XYkITWT7mFJa0xo0pR9MDZZotwPwdRcsYvCfGNhAcU Tguc4/NnBe4BVZ7AbzVk8wYWMaQpnOw+AWZGaMbC1ADdAmQKW0Rtl53YyD34bSvLKQ4D O5YkzgKRvMmpmrOvOB7ZjpGRLXLS6mQouivNpt1qzxjmBvU5W77GkgIvIf1jHiTOcFQe USkx7bOZUDKN12oIg2ZL3jcyM8atwMqeQclgp4ZHy/lMNHOU8YJLJudiDVcfG0sVgA4F oRJgm7+Ep68ArOj2uQ2AX2eNJnBZ7rmHMgv4T3l3N5RKCY/BYssyHzIXgYoBFGwhwfVV W+6A== 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=yHcRe8VpHo4X/ORGdP4kpgv/d+3jX1ARh40Acnx4ZKw=; b=uD54jrA8cebO/9HamBnzTTphS2DpTH2F+9i+uhLkzS6SU+gAakdjIFyC9YXgcfwhb5 ABAumG0KP4VbvWi943vLCz4yfK2lZunWLgJcEww2gmZSKeKeMHBoJCi/31099NScDpXS fXS+KmliG5DR/tzc/IfcefO5ANU4NwZ8fcpQITuPHyM61sAw7il/3lawta82OyxTzJYB 89sdvfHxCeDYWovvn6D/clLPZY+wUXG5iRKRKsRFzsSyExdLWnrYfkgrBG8JUdROyVkY ARbDOWj2rckLomO2BzYfJFP9VdWXIrXUUY4PKDODTz3l7fOLIhtBvBt9ZaopMGGleZzj TJgQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k4-v6si13465137pgg.527.2018.10.16.04.17.40; Tue, 16 Oct 2018 04:17: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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727032AbeJPTHH (ORCPT + 99 others); Tue, 16 Oct 2018 15:07:07 -0400 Received: from mx2.suse.de ([195.135.220.15]:36154 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726595AbeJPTHG (ORCPT ); Tue, 16 Oct 2018 15:07:06 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 54FD3AEE4; Tue, 16 Oct 2018 11:17:08 +0000 (UTC) Date: Tue, 16 Oct 2018 13:17:07 +0200 From: Michal Hocko To: Tetsuo Handa 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 Subject: Re: [RFC PATCH] memcg, oom: throttle dump_header for memcg ooms without eligible tasks Message-ID: <20181016111707.GS18839@dhcp22.suse.cz> References: <6c0a57b3-bfd4-d832-b0bd-5dd3bcae460e@i-love.sakura.ne.jp> <20181015133524.GM18839@dhcp22.suse.cz> <201810160055.w9G0t62E045154@www262.sakura.ne.jp> <20181016092043.GP18839@dhcp22.suse.cz> <59b9bd23-ff75-0488-fd96-68ee7f049d00@i-love.sakura.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <59b9bd23-ff75-0488-fd96-68ee7f049d00@i-love.sakura.ne.jp> 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 Tue 16-10-18 20:05:47, Tetsuo Handa wrote: > On 2018/10/16 18:20, Michal Hocko wrote: > >> Anyway, I'm OK if we apply _BOTH_ your patch and my patch. Or I'm OK with simplified > >> one shown below (because you don't like per memcg limit). > > > > My patch is adding a rate-limit! I really fail to see why we need yet > > another one on top of it. This is just ridiculous. I can see reasons to > > tune that rate limit but adding 2 different mechanisms is just wrong. > > > > If your NAK to unify the ratelimit for dump_header for all paths > > still holds then I do not care too much to push it forward. But I find > > thiis way of the review feedback counter productive. > > > > Your patch is _NOT_ adding a rate-limit for > > "%s invoked oom-killer: gfp_mask=%#x(%pGg), nodemask=%*pbl, order=%d, oom_score_adj=%hd\n" > "Out of memory and no killable processes...\n" > > lines! And I've said I do not have objections to have an _incremental_ patch to move the ratelimit up with a clear cost/benefit evaluation. -- Michal Hocko SUSE Labs