Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3789455imm; Mon, 2 Jul 2018 05:44:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfrB5OB0wE29n5Ir80petPJ/6sw+HjLix5ROONPWuE7BH/qp8K07UiJDuO66mWqKcrW+NaQ X-Received: by 2002:a62:5383:: with SMTP id h125-v6mr25435888pfb.142.1530535450537; Mon, 02 Jul 2018 05:44:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530535450; cv=none; d=google.com; s=arc-20160816; b=Hcj6z51avJyci1eUH4C3YWEQmsR2vUVJVwJd1/q+CDp5K2iaRJ4oaBiP38KCZFyvUL PVHh+FJMsM5d99lIiPHLtdWgE3aKTJ0QxjjPI7e2vsAnarLl4YCwVpG45+e48RxJjm+h IfQMPEfKwplDQ14IXmhuS+VF5PIzZP2+T5Le50Oam5B8FYxeZw4Ca8gvKlMkRpVf3Q1g U/cnAzvOVGBvnsIP6MqP8ILcOVjLPPgUapNbQFsqimZkRkCgPvrm8k8wYkc5f+UbdjW3 8jnT7PcI7jwKyBDMnsLUuk3NhWXjeXmr5Gs+GU+zCD4kuwrZuzim2FPewA6hCEncCQ/U jvbg== 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=Jql+SRFWFLSd4BsQWrHzGZShDvJ4lFukBelgA9r0qLw=; b=ZN7Zl2u4y8aQnRZps3GNBgRmqKDXkLIICAmrGNHlmCPL7+25sWpT4pYMf4yBRNRuOW TxhxHyc7i/1KXdbsdfX0Z6zvFYwetGzIcw5kdCa0kpqXfscnSvhxH3T6itczOKA8Flaj ctzl9kI9G5kuiRcqlwelH/JMw4rc7ysSwE7NZPpY/o7SXPSgxpQAqh7GsgvNR08vpC3q 9qE1J8Tn+5c/NUwjEBWPjBhUOO4LtMjKJOV3AuCXyACrin4eGDMHi05TfaZXmR78+pnX FLdWUyLEY8NmKMmPzT8lLa4kMlHvl4VP3ND8xvv4FWBXLaYx7o7j3Zaw42U2XYr+ZCyC uRvw== 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 w1-v6si9530146pfl.215.2018.07.02.05.43.56; Mon, 02 Jul 2018 05:44:10 -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 S965700AbeGBL3L (ORCPT + 99 others); Mon, 2 Jul 2018 07:29:11 -0400 Received: from mx2.suse.de ([195.135.220.15]:49460 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965174AbeGBL3I (ORCPT ); Mon, 2 Jul 2018 07:29:08 -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 6CFCBAE13; Mon, 2 Jul 2018 11:29:07 +0000 (UTC) Date: Mon, 2 Jul 2018 13:29:06 +0200 From: Michal Hocko To: Rodrigo Freire Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: be more informative in OOM task list Message-ID: <20180702112906.GH19043@dhcp22.suse.cz> References: <7de14c6cac4a486c04149f37948e3a76028f3fa5.1530461087.git.rfreire@redhat.com> <20180702093043.GB19043@dhcp22.suse.cz> <1113748807.15224076.1530530533122.JavaMail.zimbra@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1113748807.15224076.1530530533122.JavaMail.zimbra@redhat.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 02-07-18 07:22:13, Rodrigo Freire wrote: > Hello Michal, > > ----- Original Message ----- > > From: "Michal Hocko" > > To: "Rodrigo Freire" > > Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org > > Sent: Monday, July 2, 2018 6:30:43 AM > > Subject: Re: [PATCH] mm: be more informative in OOM task list > > > > On Sun 01-07-18 13:09:40, 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_. > > > > Does this really help? I understand the the oom report might be not the > > easiest thing to grasp but wouldn't it be much better to actually add > > documentation with clarification of each part of it? > > That would be great: After a quick grep -ri for oom in Documentation, > I found several other files containing its own OOM behaviour modifier > configurations. But it indeed lacks a central and canonical Doc file > which documents the OOM Killer behavior and workflows. > > However, I still stand by my proposed patch: It is unobtrusive, infers > no performance issue and clarifying: I recently worked in a case (for > full disclosure: I am a far cry from a MM expert) where the sum of the > RSS pages made sense when interpreted as real kB pages. Reason: There > were processes sharing (a good amount of) memory regions, misleading > the interpretation and that misled not only me, but some other > colleagues a well: The pages was only sorted out after actually > inspecting the source code. > > This patch is user-friendly and can be a great time saver to others in > the community. Well, all other counters we print are in page units unless explicitly kB. So I am not sure we really need to do anything but document the output better. Maybe others will find it more important though. -- Michal Hocko SUSE Labs