Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3393923imm; Mon, 4 Jun 2018 02:53:03 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJgVVlBk6wTpfmjKRfmBVwSBQvS/7QJhtcRF/9PK9uKLxNvxxwBOc3Zbn1xbZHulFHhrLj6 X-Received: by 2002:a63:7c04:: with SMTP id x4-v6mr16545181pgc.67.1528105983362; Mon, 04 Jun 2018 02:53:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528105983; cv=none; d=google.com; s=arc-20160816; b=a3/d/D/PXv6Rk+gfcI8g9cSNWjgOh7tLTFzXp9OHwOgE6IAazFVmDkTd193YzTc+// zB7h0jlgrrLYWUyjSYE9WRkmL1h/KOV1H2UYCMU0IgVyivXTq158V6TXnF26kiVcWzEC 6lC1NL8HQMBRN8JgwcjgHiV9uXJzF+Rf/ojtIJaQzrzrLkrzi3VcZVqWyETn3N3j3Kq5 YZfU7o+MMGdgytzGPRe/lDQQ81gZHtC6Nq0FABfWBZ8cwnHFNf38I9wFe9ZQqlXfcvg1 6maqLTSaQExV/2DfRQjAocgINL7HDJ+1xyD+KWplTXgWp4U+r57vS9eTETqFWnLlv2aM jRew== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=9LBm3CVIC34M7s9ZC8L53kgUShD31Cz5MlQjRXMWTS8=; b=Ok6br29hulIdB3Evq0VJWri8yg7kPv3yhQYBJ0hoJUmoYPNv4fdLiJYdXV+HWzZB1V qTn5a5QEt9TpP2WiXZ4NwloQNDSHRVWCoFoaGfgjT7GkbHpS2Rh9blya2WvhoSnjOBn0 qHxeN3QlkL/uSs8E+kZUBi5Le1tQdNcuvxkrQAXr255eFF4R6FG9+ZZGY9mfMsSTGYmE 9OaOG0+asVe/S/ZgdA/2vcvKcfdcBQJNQSfkAfLy9TBGCdpwsr0899Kv1bTE9vdsJOzp 5nJfqCxlZgvNw+VaksCUIT3OMpwvIpCnPr273TkIRh3NCmb8oI4DaYC8IlXh2cSrhCle HMHw== 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 p6-v6si21844599pfl.279.2018.06.04.02.52.49; Mon, 04 Jun 2018 02:53:03 -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 S1752117AbeFDJwQ (ORCPT + 99 others); Mon, 4 Jun 2018 05:52:16 -0400 Received: from mx2.suse.de ([195.135.220.15]:54102 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751715AbeFDJwP (ORCPT ); Mon, 4 Jun 2018 05:52:15 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 479EAACDC; Mon, 4 Jun 2018 09:52:14 +0000 (UTC) Date: Mon, 4 Jun 2018 11:52:12 +0200 From: Michal Hocko To: =?utf-8?B?56a56Iif6ZSu?= 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, Wind Yu Subject: Re: [PATCH v7 2/2] Refactor part of the oom report in dump_header Message-ID: <20180604095212.GH19202@dhcp22.suse.cz> References: <1527940734-35161-1-git-send-email-ufo19890607@gmail.com> <1527940734-35161-2-git-send-email-ufo19890607@gmail.com> <20180604065238.GE19202@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 04-06-18 16:57:17, 禹舟键 wrote: > Hi Michal > > > I have earlier suggested that you split this into two parts. One to add > > the missing information and the later to convert it to a single printk > > output. > > I'm sorry I do not get your point. What do you mean the missing information? memcg of the killed process > > > but it still really begs an example why we really insist on a single > > printk and that should be in its own changelog. > > Actually , I just know that we should avoid the interleaving messages > in the dmesg. Yeah, that would be great. But you are increasing the static kernel size and that is something to weigh in when considering the benefit. How often those messages get interleaved? Is it worth another 512B of size? Maybe yes, I am not sure. But this should be its own patch so that we can revert it easily if the cost turns out to be bigger than the benefit. You should realize that the OOM is a rare case and spending resources on it is not really appreciated. That being said, I am ready to ack a patch which adds the memcg of the oom victim. I will not ack (nor nack) the patch which turns it into a single print because I am not sure the benefit is really worth it. Maybe others will though. -- Michal Hocko SUSE Labs