Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3099105imm; Sun, 3 Jun 2018 19:43:01 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIgcYT6eLdnafU6Fe29jUleb8jH/1VHDs/toejqOQ2+lm+SkLSy2jaYvWFyfHVoOyQ7p13x X-Received: by 2002:a65:5306:: with SMTP id m6-v6mr3436811pgq.250.1528080181258; Sun, 03 Jun 2018 19:43:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528080181; cv=none; d=google.com; s=arc-20160816; b=rekz85IrpsHp4yhyCDoACgB5xvNI12UQEqjdOH76a2ursmUxYTimuaGmTbt3cv2y7L O+JynOMjlzjvnvcI8scfj7HxHvzhI92ReP4P96g/08WKCq2qNgaStrXTXFjzZSy5Jlmp DMQNs2uImLrsqf7JOCHH4O1EVSQIOZooCIIH0yK/mPk0qW4ccL7icFCETalLShsZXhvE CZ0c7TwpkodYlOGsj20L5s9TjI/AN0eV3an2fj5/KPG5dEpUeIGxZeCMXfJCn+Okm5HT dLWtX1X4KAauxP1O4WjDl9GyP5Ei2zkqJEuiLxUr//C6pBdoWsJuIcpdF+uVQT57sapf T8Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:arc-authentication-results; bh=fvO2bHF4n4Ar7plgy+/rzSnPu0LsTRYNVHWzYFlhEEQ=; b=PexZhstmiyL4uckVla4aEBZU2h4LxcGMaVdYqKMMkj5B6yQHbBcTH4ENtK6YGCGDMX HsDTKl9ENEhSEvzb8nM7nrX2uQQhYfSIXfQVjoX1UeN1Bag9R+7eXS7NklG0BXEYliY2 kS1wOi2G3Jhm49XbqpiAzPWMmfE9cVKJ5Lr0GSDBZ5DE0Q+bFnKIx3D7p/kffKwPVkmh Pv/oLGvvCCSpjepNJneZb0eXp71lPFusJapwMljvT2AVpsiMaVPPmPmARJbxT22pj4s5 NTGL1ER1+SfAXK2NmH/SkqhidBP1t2LDEPD7SPbkTJ3yBEGse+gWaALi0Mi9MkrkBIuR vZpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HBELma7U; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k18-v6si19770250pll.404.2018.06.03.19.42.46; Sun, 03 Jun 2018 19:43:01 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HBELma7U; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751880AbeFDClZ (ORCPT + 99 others); Sun, 3 Jun 2018 22:41:25 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:45607 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751808AbeFDClY (ORCPT ); Sun, 3 Jun 2018 22:41:24 -0400 Received: by mail-lf0-f68.google.com with SMTP id n3-v6so22751913lfe.12 for ; Sun, 03 Jun 2018 19:41:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=fvO2bHF4n4Ar7plgy+/rzSnPu0LsTRYNVHWzYFlhEEQ=; b=HBELma7UhoYejzBHlUljvzNG1UB/1ZNrYRAb2iYS2TRKoSf9xv/HxU6n67mtC3/WKM ZAEAOss11JnASAbEZS7kFQAyW/fPjLZT2Al4ZVncnHb/E6GzVlxoFGWUUXshj2UHk8Dt LZY3jOZikMTLjiG0aeTipqdOplssCwNHCS7isPiK6mQO+TeRyvnEL0gHEAfqvc9MZCWz pIAWdoHXqCn5daAuSTyG2E9DEirX3hgkaHFWOE/JobtEjKoXF1XMw+AEoI879DNWbj9e pBmaISVELi7HPSADD3f6kEycFJ4J7Th26Y4GKNAvvznfHaQG/F8shrnBLW4Pxu+9avvq KHpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=fvO2bHF4n4Ar7plgy+/rzSnPu0LsTRYNVHWzYFlhEEQ=; b=sF/828pqZRaM9wFoCjSYfdRlS3ktdkh7nMv/mtawiYMZ+cc7rr5VxxbyDTSDTZE4N4 Y61G/hybO3sOuzo88OPebCy5UmvswIiME7VmM2LmJln8dYK3kjDat3r+3NrIFfC6AGoJ Jx0AzKPd2bVEmQ36bnMXgMxlCasZuAboZfdAMp3FcA7BwpgLWMe5JBIF8tule5sxkiw9 3/VQ3OpTiBsDXkREwnuyBsioG7XBxAXWWFiR8HtgeK85FLXw7znGg7sAIswHnlumSVZ3 TopU7s1kByPKdvYkxr+nW6N5UggZ/P0ypuia9f+R2GhSxrfpRTjCtEF+8+78cXN4K9iB Fiyw== X-Gm-Message-State: ALKqPweTLf0aWtD1hfw1CMD2tpBrjDWX4wHMqHrnK5Fqnnod3g94dkb5 J4bVo1MnQOT2VAdsLqAlxW49hUEYBDt6cjWA2zc= X-Received: by 2002:a19:2092:: with SMTP id g140-v6mr11969876lfg.38.1528080083247; Sun, 03 Jun 2018 19:41:23 -0700 (PDT) MIME-Version: 1.0 References: <1527940734-35161-1-git-send-email-ufo19890607@gmail.com> <1527940734-35161-2-git-send-email-ufo19890607@gmail.com> <20180603124941.GA29497@rapoport-lnx> In-Reply-To: From: =?UTF-8?B?56a56Iif6ZSu?= Date: Mon, 4 Jun 2018 10:41:10 +0800 Message-ID: Subject: Re: [PATCH v7 2/2] Refactor part of the oom report in dump_header To: rppt@linux.vnet.ibm.com Cc: akpm@linux-foundation.org, mhocko@suse.com, 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tetsuo > Since origin_memcg_name is printed for both memcg OOM and !memcg OOM, it = is strange that origin_memcg_name is updated only when memcg !=3D NULL. Hav= e you really tested !memcg OOM case? if memcg =3D=3D NULL , origin_memcg_name will also be NULL, so the length of it is 0. origin_memcg_name will be "(null)". I've tested !memcg OOM case with CONFIG_MEMCG and !CONFIG_MEMCG, and found nothing wrong. Thanks Wind =E7=A6=B9=E8=88=9F=E9=94=AE =E4=BA=8E2018=E5=B9=B46= =E6=9C=884=E6=97=A5=E5=91=A8=E4=B8=80 =E4=B8=8A=E5=8D=889:58=E5=86=99=E9=81= =93=EF=BC=9A > > Hi Mike > > Please keep the brief description of the function actually brief and mo= ve the detailed explanation after the parameters description. > Thanks for your advice. > > > The allocation constraint is detected by the dump_header() callers, why= not just use it here? > David suggest that constraint need to be printed in the oom report, so > I add the enum variable in this function. > > Thanks > Wind