Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp886834imm; Wed, 4 Jul 2018 07:38:47 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfpYFbsRed6CJ3Y8102pNrEDOVpiWUkQ7m5b/+fyFMZ1eQqb1xGN7uAgWuIMTsa5+XddKGS X-Received: by 2002:a17:902:6ac7:: with SMTP id i7-v6mr2458382plt.288.1530715127926; Wed, 04 Jul 2018 07:38:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530715127; cv=none; d=google.com; s=arc-20160816; b=ObGWUJpbsbmdK96gdQc2iDJVs/ARbd6Rp9PEOOnx27kBvqSG6xGdJBUqoVGHaF59Qb tJMk4/oyttYtbtVVdezLO//RgYvTTnaupHwcy/L5H4xdeoqtkHB/Ky2qDqQ4g7CATwPE 8NammK70wHaezQm3FmjIVsdUe4XsSM8f/H0REBYU8QtVCt6Ba1SKfwqS6FN7HoonnVxm 9z7tg1kGnUuHIY0/wjtaoAKcwen95TwmgrY4NKyJ4RvTcbAT2xf+akk5LEt1Yx4yekHi gMOJfhXdmmEupmloOSdXUNFdOSqjrJCS6oZd1clbP39mBoVi0KphSg3qOkWnJDSyw6ls 6ntw== 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:arc-authentication-results; bh=Tfo6G9+74TeMz7wqporzQCNgaItfYY6TBJBs2QcIriQ=; b=QxSHQmBBNetwucwpIhiXUSB0oEn/NTB7SwAyV4jkmYNCO6qw6RzRBhrWWP8rAdUvJP RhMx9htZ+OLitR5/KDFCJGwP+lmNhvlpZrWjd88uDFxACAxFMC4tyNUcepU1s8IZFiXx mOlj7WG+hv3/HuNIHkKHrVQvtNI0Snt6XW4aX2gmN3MMZlOhOPgBogv5d0s6Bcm2jmxx 8zV8k1wb6BUqwW1r7WzVgpm6ZLjwxpL4bI/cs1CPgfty4BmScEs30WaUu64tVxso3Bqn j/7Hcr1RTMxtRksqKSBK4zrkECf4A15uxmU83fIYyHqN/6roDAaOnyxdW9L2IWaHx1Is UfWQ== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 16-v6si2244892pgr.325.2018.07.04.07.38.32; Wed, 04 Jul 2018 07:38:47 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752881AbeGDOgz (ORCPT + 99 others); Wed, 4 Jul 2018 10:36:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54144 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752136AbeGDOgy (ORCPT ); Wed, 4 Jul 2018 10:36:54 -0400 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4D1CC81E07; Wed, 4 Jul 2018 14:36:54 +0000 (UTC) Received: from xps (ovpn-118-10.phx2.redhat.com [10.3.118.10]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B82AE2010CED; Wed, 4 Jul 2018 14:36:52 +0000 (UTC) Date: Wed, 4 Jul 2018 10:36:49 -0400 From: Rafael Aquini To: David Rientjes Cc: Rodrigo Freire , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: be more informative in OOM task list Message-ID: <20180704143649.GE31826@xps> References: <7de14c6cac4a486c04149f37948e3a76028f3fa5.1530461087.git.rfreire@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.25 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Wed, 04 Jul 2018 14:36:54 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 03, 2018 at 06:34:48PM -0700, David Rientjes wrote: > 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. > Same here, for a v2: Acked-by: Rafael Aquini