Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3789094imm; Mon, 2 Jul 2018 05:43:46 -0700 (PDT) X-Google-Smtp-Source: ADUXVKION4OWblULyEBuCS77SixDm8qfRKw779qgT/Nrx+hNvgzkQDpqc1qnd2ajejtx3ZaQupDD X-Received: by 2002:a63:3e0a:: with SMTP id l10-v6mr22105057pga.355.1530535426618; Mon, 02 Jul 2018 05:43:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530535426; cv=none; d=google.com; s=arc-20160816; b=QwUxIg74zXHtccP7LbFkHkugU8h3lbWYlPX6Kjp9YTFB6AJYu8TOpe9bF1f1tGrNAa uDF2DfXkbPnRD/491VaMjq5Wyj6Hz8j4UNDVTPDS90J0Toaui+IyxedOszJxPh0Yz+qO 12blcTj5h/v5I473hnnsRAT4YoE7+xmrH0HCtFGceKNjMOe9AYWK6Hnp+230N3C12HUx Ffva8WvK7KquP2YeLZ52Jfm2b4UuxlUHNU62S5Qfp2VLDOVRKE2azhgwouqCugA2pS0o d8mW2cgR2ot8imbns4Q0ufDS+L5yxnv39xlTdvoEkshWzXtjMUthvYtUOqVluejSAZZK k/SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:arc-authentication-results; bh=cZERU87eCYZle9o9tELqjAVVRvgOIjyzH2mlUcJSHRk=; b=njpFxOyp6TmVtkQg58AmuJ/IKr2MsCJl15qVv4cvhEUvBK5zt/o+EExj+QKiHaSqf3 YAUOSsgUa61gAC+X8KrkrMIQxkJQwCzHFv3HtwfWG13gIS7e2yVON6kotaNZpBnSMhK7 5yMaNHkqxLprV99y+13R+UpVEtup/nhIfxknUaUI87eSsdGtUHKFj9NigDQB8Yok8wJ2 Xo4HDru4Z0WreDIAV0EMQGHHXa1BWjiilpNnMQLQqpWhULD52m7zWxLiEVfnf26aX2ZM 5y0gbmx1h2tyTcwx8PFAIHMiU61g+EtdCy/C/ATgSw4uJySH1ABm9edR436Yc8bTeVfW 4Xiw== 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 m11-v6si13379840pgq.601.2018.07.02.05.43.31; Mon, 02 Jul 2018 05:43: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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030595AbeGBLjI (ORCPT + 99 others); Mon, 2 Jul 2018 07:39:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59428 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030567AbeGBLjE (ORCPT ); Mon, 2 Jul 2018 07:39:04 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BA76A308402F; Mon, 2 Jul 2018 11:39:03 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AA9DB6016F; Mon, 2 Jul 2018 11:39:03 +0000 (UTC) Received: from zmail19.collab.prod.int.phx2.redhat.com (zmail19.collab.prod.int.phx2.redhat.com [10.5.83.22]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 9AB6C1800B68; Mon, 2 Jul 2018 11:39:03 +0000 (UTC) Date: Mon, 2 Jul 2018 07:39:03 -0400 (EDT) From: Rodrigo Freire To: Michal Hocko Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Message-ID: <1583797106.15227304.1530531543526.JavaMail.zimbra@redhat.com> In-Reply-To: <20180702112906.GH19043@dhcp22.suse.cz> References: <7de14c6cac4a486c04149f37948e3a76028f3fa5.1530461087.git.rfreire@redhat.com> <20180702093043.GB19043@dhcp22.suse.cz> <1113748807.15224076.1530530533122.JavaMail.zimbra@redhat.com> <20180702112906.GH19043@dhcp22.suse.cz> Subject: Re: [PATCH] mm: be more informative in OOM task list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.97.116.8, 10.4.195.4] Thread-Topic: be more informative in OOM task list Thread-Index: kWhy4UPh4UlUgHWt0Cdtg9onaXIWpg== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Mon, 02 Jul 2018 11:39:03 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 8:29:06 AM > Subject: Re: [PATCH] mm: be more informative in OOM task list > > 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. Your statement is correct. And I thought about that too. And then the doubt: * Maybe someone forgot to state that these values are in 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. The thing is, it also led some other colleagues (a few!) to think the very same as me: That raised the flag and made me write the patch: That was indeed misleading. And you may not have a MM and OOM-versed specialist available all the time! ;-) Still ask you to reconsider. My best regards, - RF.