Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2959855imm; Sun, 1 Jul 2018 09:10:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcMFiNmZfhisSG+9YNwCJxSQkxBmEthH4eYEDHwn0X9YcLYLRXxESr4toXZKk4NYfn+i56B X-Received: by 2002:a62:8f8c:: with SMTP id n134-v6mr22246794pfd.66.1530461451394; Sun, 01 Jul 2018 09:10:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530461451; cv=none; d=google.com; s=arc-20160816; b=NqayXmVcHfWwbSovX5env2whTUQkqSKZakW0rIejkkY4cPdUftuA/iE/Br1ETQmn5+ lsAfMEKUSMfCkVN+l+FtPJ7GPsXevzEzhSmLeiW3ll5VGF2E2nCkxpZCywTfCy9O1XTA Fqq8s+/hbiP33YElZzHXWJeBbRw/slNSFdum33Y5szENc/paBUnMXUmIw3pbkDkkh2fU sB1U3G8dDE50i1P91yJTxezlJC+bg3kovwOqjwE+MQcZvMLkvY96pGCsFN3VDvFC/8UK symI+eHUjOLgGpPG6mtSVYpJ8K4FjVt/twHDNX4TDNZxoQ5NweMEj7fIrgAVsu+hJ1/E lmww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ljNd8pJUM4sZcjt0zeMHGIUgv6gqQ605aV60z2LhB7I=; b=OgRv3xPN6rHVJh6fMSys/7z5HCs9IrtRqlalaCG8AeKX4W1j5PMdnVenDAhdYqHtoR Inf+X9JIOvdP1Bwoo6glP44U3HR3H9oSvagGhI2BC+5jLqYiqSCmlNnYuoWzAG7Ay2bS YEAcscGvCg9R6PCzKvRiABGsYVy8bMZEW2dNYxYl58/kWvXLgtR3Yj0SNXivmD4w8gzm Ez4I6GxyPYltSvQiXQRyEooA/32dEvdqkrP1gBQURdxp1WpmiGOEt/0yiKkztTmzjgnL 04clq9+KRzOWapZ+TW0S3+fy1fBOxYe2kJ3BRIDHoHBe9eTLXNcWcwbVEhWdPsv9erEJ 42fw== 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 z10-v6si9877571pgo.412.2018.07.01.09.10.35; Sun, 01 Jul 2018 09:10:51 -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 S1752367AbeGAQJy (ORCPT + 99 others); Sun, 1 Jul 2018 12:09:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43998 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752224AbeGAQJx (ORCPT ); Sun, 1 Jul 2018 12:09:53 -0400 Received: from smtp.corp.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3577330E6842; Sun, 1 Jul 2018 16:09:53 +0000 (UTC) Received: from rf.usersys.redhat.com (ovpn-116-8.gru2.redhat.com [10.97.116.8]) by smtp.corp.redhat.com (Postfix) with ESMTP id 695B268543; Sun, 1 Jul 2018 16:09:52 +0000 (UTC) From: Rodrigo Freire To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] mm: be more informative in OOM task list Date: Sun, 1 Jul 2018 13:09:40 -0300 Message-Id: <7de14c6cac4a486c04149f37948e3a76028f3fa5.1530461087.git.rfreire@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.27 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Sun, 01 Jul 2018 16:09:53 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) { -- 1.8.3.1