Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp258640imm; Tue, 3 Jul 2018 18:36:43 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf0NZa8EDG2vsTbrhCoRk4nQXpZBKqpdo329VLkquwrOmOoUHbnU3eHOyPovLD85tQGtXzR X-Received: by 2002:a62:2605:: with SMTP id m5-v6mr28389pfm.223.1530668203005; Tue, 03 Jul 2018 18:36:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530668202; cv=none; d=google.com; s=arc-20160816; b=JWNOBf+Sss/OW+SuIhLL2OCSuJysEtLvmEMkUT3jLuugKufawlKpSTeaYu+yGhNWog 4ytOeQ6u1qzXRWNGuWrHHKPbHW8p8kQk0DCR1NVohohUaid05nsA2+nfKP925Z2JhJ1p jJA+5CPmG9ekI2OMIBrkD2+WjvV+ttXgQvAxmHuciwJ+YkTJVXKXKpGbDq3aOWlCalK9 th3IAGma4BCtctB9E99JtTmaqKtcsp61b/4dU9sIpA4fxMcV7nF0Yz9/9kHBChRvaTyj g08QQaRHCStGZM0hH+yZDhk1oPBivfo4f4do/H5wUjM4GzP5SJsvJYZMlJ1oLylCxRlC 4xyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=uyiqE6wSM43Y9Oisrog8zs9G/dKKyZrIsJr2kjVewZ8=; b=xMcH+TxIDR8W/Oi4Z7VV/B3t7LlvB4qQE6NJizR3OF3WldLx8En5mfS2frc3VGB1NC rXx/VFsJhqdlAbn6X4eR/CzXPSqewgYgZjyNDGHuJmZGC+liKvRMUDTc+z3eCai58cbd JLqDbL/bveRcQeG/LPKaKBymoVuHeFxvd1hM0tBol47KZh5rdA7gizoCQ1xnnKEWFd6q KJMYihoCemthC8b1E+bIh2XPbggGCeLWY36AEXH4X/Tf2nKbPI/nHf0B3PpjWs+vKo18 JYgiPDWX1rko5JMtXuuqhplWWKadEPS7/5ZiX8XI97xM/0OgCqiom//DPmYptOIIbhQR 6Pfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=UUeE535Q; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6-v6si1999400pgr.208.2018.07.03.18.36.28; Tue, 03 Jul 2018 18:36:42 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=UUeE535Q; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932694AbeGDBev (ORCPT + 99 others); Tue, 3 Jul 2018 21:34:51 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:38484 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932364AbeGDBeu (ORCPT ); Tue, 3 Jul 2018 21:34:50 -0400 Received: by mail-pf0-f194.google.com with SMTP id j17-v6so1836987pfn.5 for ; Tue, 03 Jul 2018 18:34:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=uyiqE6wSM43Y9Oisrog8zs9G/dKKyZrIsJr2kjVewZ8=; b=UUeE535Q+tRn74MFDbtpi1w426VPbDs37AEh97+YyW7PwjxiaOGBTY9vPG7vgcLpuR vriZ+vdvj+cIXPLbTz67rCWDRE54GabXAYahfEGMz8mDcTCOPlgVNoVJBB9qRaM0ghaj Ofz9D2mtMGd4NpOmaBzgHV9wX81J9Bm0SChUM1VXtRWpi4KBrmA49aQWwwItjYpL+/vH CGEsDar+xbGI7WicJK6CLHkhce5AsdpES1KfW2tmIVFBi/KbtZDOmXBgVTNqVU4Sn00e rr9hjaP10yeLsmfetyi+z2Wwweu5v1rGoJ/JRPHj70LaXoFfoZC3043coE/KDKepVjb9 mkuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=uyiqE6wSM43Y9Oisrog8zs9G/dKKyZrIsJr2kjVewZ8=; b=lUUa6CmglYOTIZdbLruOQoHjjxjNDiNMsZMycAvjTYC9Z4u+YNKHEY/RqX7WOlmxPT SdEoHucaeT/PlObqpf7Yw+Q80WEL+jd9AnN3nDpnBSEQB1iuqTszFu5RdKYrXatpYuSG oPfwOc6BcvdNxCWQL4Gji3jCGUufDk0Ksp+MESogO4v1ATmoy6DRNzLFwauo/R0LxCuM 1n7W/2oma0IuaW2jcKA7vFb91hviKlUtsB1GJX1n7OnwBHHYlzrseugQ2jxb6RlGMaQR vXajIUA/JpVFcb/oqk40uiOoWIpLc8NKmidjAlwtvLS5FAPgMJAw/c3yI5E2RwtEx6aJ xBwA== X-Gm-Message-State: APt69E3iYEaPfS7dIVQhXQz3i3XvHV2HhnFGJxQdrpNnfqwhABE1L3j+ B1jaEtXapYTLBED2F0tvZy5quQ== X-Received: by 2002:a63:26c3:: with SMTP id m186-v6mr61443pgm.56.1530668089401; Tue, 03 Jul 2018 18:34:49 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id d188-v6sm4285065pfc.96.2018.07.03.18.34.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Jul 2018 18:34:48 -0700 (PDT) Date: Tue, 3 Jul 2018 18:34:48 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Rodrigo Freire cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: be more informative in OOM task list In-Reply-To: <7de14c6cac4a486c04149f37948e3a76028f3fa5.1530461087.git.rfreire@redhat.com> Message-ID: References: <7de14c6cac4a486c04149f37948e3a76028f3fa5.1530461087.git.rfreire@redhat.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 1 Jul 2018, Rodrigo Freire wrote: > The default page memory unit of OOM task dump events might not be > intuitive for the non-initiated when debugging OOM events. Add > a small printk prior to the task dump informing that the memory > units are actually memory _pages_. > > Signed-off-by: Rodrigo Freire > --- > mm/oom_kill.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/mm/oom_kill.c b/mm/oom_kill.c > index 84081e7..b4d9557 100644 > --- a/mm/oom_kill.c > +++ b/mm/oom_kill.c > @@ -392,6 +392,7 @@ static void dump_tasks(struct mem_cgroup *memcg, const nodemask_t *nodemask) > struct task_struct *p; > struct task_struct *task; > > + pr_info("Tasks state (memory values in pages):\n"); > pr_info("[ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name\n"); > rcu_read_lock(); > for_each_process(p) { As the author of dump_tasks(), and having seen these values misinterpreted on more than one occassion, I think this is a valuable addition. Could you also expand out the "pid" field to allow for seven digits instead of five? I think everything else is aligned. Feel free to add Acked-by: David Rientjes to a v2.