Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp698708imm; Sat, 8 Sep 2018 07:17:46 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb72uyRVcUkBEMeudhxa0s+kY1ZxPutzOuvDtY7Rsyu9UQB6VPgCc1v+xWIE8EXCnbzcBsP X-Received: by 2002:a62:3703:: with SMTP id e3-v6mr14006916pfa.117.1536416266732; Sat, 08 Sep 2018 07:17:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536416266; cv=none; d=google.com; s=arc-20160816; b=xpC1LJnyFiBVufVeUliI4h7qSmfrAwR+YJ0WKuce2Au+dtHREDr4MNGi7bLKt6aSuT W9+sS5cmSfyqaSscnDcjbtW8vo8w/+405Qqqb1mzKFB2VowryzRCPsCSI3VnXL/RxV2/ WbwhlMUlDydmV50hG9agbiiAEnHpARdZbubnOGbs8bZ8iWyLCiYJnDi4zfoE68MNrV5p RrJkEgIOHrJPpzM8J2w42Hd7/0roUD7GZvFNRG/QfTt9LoyuLlyRzQRN2p6Dnb4P9443 5QDn+7JswfcL466yn0ld3/JLYWUAoDXv4cSjLOUT/6BiHin9qH+7uRSCLQCA7HVTb7MS gL8w== 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=xBUtQl/W/9b/SvGjUN9Cp/JCCwl8V38dRIUrjNZdoKs=; b=pggL2JNE1EG1au1R7u3MYzFQ3iaIWWSiepIGKRgpbYE+sNmCIoGEkV4pwuVyDYj3iI z+L+gCkvsk5kdqS3LG3mW23XYawO0WJ2pgjGi/bv1fNlGx0C9hfNfGJVvMHySmWfcC+Y 21w887bGWnFcFcZJ3/2zF0ahiTyhN6O+2uJsF/+jb7XrYjC4HJJo6n375YTQIHrueX3M wslvDMj6UPRXmZrrS2uXHK+xvPFbwNhUZdoPCwd+qAISBKGWlurJuxBidAiyul8jUY8K ac0Yf/K0eyPKKvV4rIlzQwxzvFiatAfepXsis6BsEVpZaz7pmUulVYoGwS6uYvPNPPeP wGeQ== 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 w14-v6si10798668plp.183.2018.09.08.07.17.31; Sat, 08 Sep 2018 07:17:46 -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 S1726952AbeIHTCA (ORCPT + 99 others); Sat, 8 Sep 2018 15:02:00 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:57898 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726498AbeIHTCA (ORCPT ); Sat, 8 Sep 2018 15:02:00 -0400 Received: from fsav304.sakura.ne.jp (fsav304.sakura.ne.jp [153.120.85.135]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id w88EFkYK074322; Sat, 8 Sep 2018 23:15:46 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav304.sakura.ne.jp (F-Secure/fsigk_smtp/530/fsav304.sakura.ne.jp); Sat, 08 Sep 2018 23:15:45 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/530/fsav304.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 w88EFjEO074311 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 8 Sep 2018 23:15:45 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: Re: [PATCH] mm: memcontrol: print proper OOM header when no eligible victim left To: Johannes Weiner Cc: Andrew Morton , Michal Hocko , Dmitry Vyukov , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180821160406.22578-1-hannes@cmpxchg.org> <20180908135728.GA17637@cmpxchg.org> From: Tetsuo Handa Message-ID: <1bdda2c0-f01f-a687-ad98-16f0473e3e32@i-love.sakura.ne.jp> Date: Sat, 8 Sep 2018 23:15:44 +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: <20180908135728.GA17637@cmpxchg.org> 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/09/08 22:57, Johannes Weiner wrote: > On Sat, Sep 08, 2018 at 10:36:06PM +0900, Tetsuo Handa wrote: >> Due to commit d75da004c708c9fc ("oom: improve oom disable handling") and >> commit 3100dab2aa09dc6e ("mm: memcontrol: print proper OOM header when >> no eligible victim left"), all >> >> kworker/0:1 invoked oom-killer: gfp_mask=0x6000c0(GFP_KERNEL), nodemask=(null), order=-1, oom_score_adj=0 >> (...snipped...) >> Out of memory and no killable processes... >> OOM request ignored. No task eligible >> >> lines are printed. > > This doesn't explain the context, what you were trying to do here, and > what you expected to happen. Plus, you (...snipped...) the important > part to understand why it failed in the first place. I expect: When SysRq-f did not find killable processes, it does not emit message other than "OOM request ignored. No task eligible". There is no point with emitting memory information etc. > >> Let's not emit "invoked oom-killer" lines when SysRq-f failed. > > I disagree. If the user asked for an OOM kill, it makes perfect sense > to dump the memory context and the outcome of the operation - even if > the outcome is "I didn't find anything to kill". I'd argue that the > failure case *in particular* is where I want to know about and have > all the information that could help me understand why it failed. How emitting memory information etc. helps you understand why it failed? "No task eligible" is sufficient for you to understand why, isn't it? > > So NAK on the inferred patch premise, but please include way more > rationale, reproduction scenario etc. in future patches. It's not at > all clear *why* you think it should work the way you propose here. >