Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3664858imm; Mon, 2 Jul 2018 03:24:38 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJRirrq5s/Qcn0veJLYH30dJJLjkzCMnasPRpWhGgIrpFZoWk8OB8aigoZwoFkwFS8u1+a3 X-Received: by 2002:a65:6147:: with SMTP id o7-v6mr21275787pgv.163.1530527078793; Mon, 02 Jul 2018 03:24:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530527078; cv=none; d=google.com; s=arc-20160816; b=rGz/HSCd+AzhsqbDRmkYo1GJEgEH6QIE29+sNfaqrY7/SUyr2FiMq8wtHsB+l4P2H8 S4KvyFfPKhctysU8OYogzeXsHwScvgIi0x2j+BArxMnm3yfV4hb8Eo+4EFqIvvrA6MKD S5IlFb/QpgacCkNY6STmstyq5yWd2RaI6Es1YHfUWBiB3O3YRQgt2XK/h1ATInkoKUQ4 eCjhiJ74wMf3a/+ZjwiqlYDZMh4UxfNq2tgrFq1EvPSgMKNw05fhNeVn0FufoevEK2ET lHePAwGAx8DfOYrmgJi/hhDGjqeSJafp2DtlY3sDrfPbz4jNmAW0YfWrQtz4igKTM6Ht ie2A== 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=LgfSwX2tk1wH8zWG07+HVhHnFNIXqdRlwa7RThae+rQ=; b=w6mWF3mM3CPIZ+xQjgghjc5QAHN8pOc0hztjxlJORe6DuFpqKbV28sUUt034h46jjF S8Ra21g2g8AIsceMQf6phi4ChCdfamnb7fPwqAT2/TrDE4v+00a98p86ezFuBYrPKuCD PZgmxl2pvmvAlDRqja0JOUA5XMHG949Irwe9SfleX9RZ11DcrrQhZVHPCbfKbjKfoslI SCMKwSJSNkqESqtQMZtTfJ1Ib0MCFs3Je+F41xwQBiFoNGAlCl8wSym9eOtAy1saClI6 KSRj7vDRL83zhPFTUFxaArPXeWNMZr5ZwwOJRH45zX9HsL9JnbzMjP2lf7iLLYLXVDea OFwA== 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 9-v6si16526435ple.104.2018.07.02.03.24.24; Mon, 02 Jul 2018 03:24:38 -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 S965553AbeGBKWn (ORCPT + 99 others); Mon, 2 Jul 2018 06:22:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:38266 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965541AbeGBKWj (ORCPT ); Mon, 2 Jul 2018 06:22:39 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 9C68AACCE; Mon, 2 Jul 2018 10:22:37 +0000 (UTC) Date: Mon, 2 Jul 2018 12:22:36 +0200 From: Michal Hocko To: ufo19890607@gmail.com Cc: akpm@linux-foundation.org, rientjes@google.com, kirill.shutemov@linux.intel.com, aarcange@redhat.com, penguin-kernel@i-love.sakura.ne.jp, guro@fb.com, yang.s@alibaba-inc.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, yuzhoujian@didichuxing.com Subject: Re: [PATCH v11 2/2] Add the missing information in dump_header Message-ID: <20180702102236.GE19043@dhcp22.suse.cz> References: <1530376739-20459-1-git-send-email-ufo19890607@gmail.com> <1530376739-20459-2-git-send-email-ufo19890607@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1530376739-20459-2-git-send-email-ufo19890607@gmail.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 Sun 01-07-18 00:38:59, ufo19890607@gmail.com wrote: > From: yuzhoujian > > Add a new func mem_cgroup_print_oom_context to print missing information > for the system-wide oom report which includes the oom memcg that has > reached its limit, task memcg that contains the killed task. A proper changelog should contain the motivation. It is trivial to see what the patch does from the diff. The motivation is less clear. What about the followig " The current oom report doesn't display victim's memcg context during the global OOM situation. While this information is not strictly needed it can be really usefule for containerized environments to see which container has lost a process (+ add more arguments I am just guessing from your not really specific statements). Now that we have a single line for the oom context we can trivially add both the oom memcg (this can be either global_oom or a specific memcg which hits its hard limits) and task_memcg which is the victim's memcg. " -- Michal Hocko SUSE Labs