Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3629456imj; Tue, 12 Feb 2019 01:55:19 -0800 (PST) X-Google-Smtp-Source: AHgI3Iapr2c0Qt51MBiTYA69xIhJbwimoysiXKO68/N3ubS88r8C/IxcdttpDklMCBDt4h0iuwga X-Received: by 2002:a63:105a:: with SMTP id 26mr2806518pgq.184.1549965319631; Tue, 12 Feb 2019 01:55:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549965319; cv=none; d=google.com; s=arc-20160816; b=Fcdd1W7aaxZt9laPJEwKJSZ8TXYPgfmzUuA2DtOd55BAI45MpIdIs2OEm1FPzM0/bZ CQS0yesTtPcx85NW/6iFIIex5D9i2CZ6actIKJojz03cEa40d9DRmSseXKDzpsZc9AJt dVVf8a8mHmFalpeg16e6Pl3uH0r3mTC6S87YQdaKiN/lcOesYV7Xs/pZOIORWCJ7eZWb m1QCItBlWkBiMTjbj5SWy9zp/z9MdWXQObgo2wWtpzkIKCADFjSW0x8cJNb9R/Jb7xKj NC/aNrslp32kJI38608Mh//pCmO0BB74aiPMcqJwib86Oq8Cs6+mC52L3LY1JJgYFKoc gn8w== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=VWzlY1PPQ+/67pm+/z2QkBDdCvOyUHPQEXMFpI7S4nM=; b=smy0hWajyIsWdpGtXue6to5oY5raujNnpmS8EL1LNaDpCMtYm1gUl3IFrMPuk+8JuT aXEpNjQZJRk3CTB0vuvg85pyX0VIcE48fqMaKbz0uaqO27cVcJE4o54KkSX0V4iVEdRT dDJQzlQxC4nPQCyar2C5vCZPb2VTcSFhMhKECsKXq6p+9cDxe8H3C9EUlouPtvliPP0K 2wii1NN/+D6KEcIeqd0j1WgP2hXqh/06DkHKEG/jSznt0oL4AoU7ZhA1H/baZZbdVGdx 32pI5/frbEhujQGThpcycpvxKWnAH2UnG0t5/Rq3yup9tTjr8Q+Le/6mbsgxa1NJX6Yz B9eQ== 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 s11si11976762pgk.344.2019.02.12.01.55.03; Tue, 12 Feb 2019 01:55:19 -0800 (PST) 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 S1728421AbfBLJyD (ORCPT + 99 others); Tue, 12 Feb 2019 04:54:03 -0500 Received: from mail-ed1-f68.google.com ([209.85.208.68]:39505 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728306AbfBLJx7 (ORCPT ); Tue, 12 Feb 2019 04:53:59 -0500 Received: by mail-ed1-f68.google.com with SMTP id b14so1623730edt.6; Tue, 12 Feb 2019 01:53:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=VWzlY1PPQ+/67pm+/z2QkBDdCvOyUHPQEXMFpI7S4nM=; b=kOFbL1iAflsYQzO1V4jwH69noGtlb2GhydHWl0tSVnGgLTpm5zPuBdWwAYEsXnjZe2 LF/pg9Wj7ju6Ky2fR+xJJkhWP1BW7NgefSVFhHhlMddxZ35E5wIdmpq0ULcqxZKbT5B1 IhpB1M161nj2xSsRF0g5/DUmEoj2fhpANJJxoShyq5zxYU36i1xas9oA3XWy7zJEZ0wx caVju/d/akun5wuFnmp6kp9uI3IZ450T9UkWFblw5pBWTW8aS+710YQwAJvVSkANVVg3 Sc+Yr8Iy3CGj1pmcoYn2Wd3IZH3dGj5o7iri9+bgAUAc6kg1B9+YrVNKV3UuC0E4YNso fZXw== X-Gm-Message-State: AHQUAub4i8dFYJfysyl3BII9NFZVXitjIoGD7QOM15zAtgUFRZaSpO0m k+ICvsBobL/ZkQrw2sb/NHs= X-Received: by 2002:a17:906:18f1:: with SMTP id e17mr2093489ejf.82.1549965237531; Tue, 12 Feb 2019 01:53:57 -0800 (PST) Received: from tiehlicka.microfocus.com (prg-ext-pat.suse.com. [213.151.95.130]) by smtp.gmail.com with ESMTPSA id i14sm2876791ejy.25.2019.02.12.01.53.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Feb 2019 01:53:56 -0800 (PST) From: Michal Hocko To: Cc: Pingfan Liu , Dave Hansen , Peter Zijlstra , x86@kernel.org, Benjamin Herrenschmidt , Michael Ellerman , Tony Luck , linuxppc-dev@lists.ozlabs.org, linux-ia64@vger.kernel.org, LKML , Ingo Molnar , Michal Hocko Subject: [PATCH 2/2] mm: be more verbose about zonelist initialization Date: Tue, 12 Feb 2019 10:53:43 +0100 Message-Id: <20190212095343.23315-3-mhocko@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190212095343.23315-1-mhocko@kernel.org> References: <20190212095343.23315-1-mhocko@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michal Hocko We have seen several bugs where zonelists have not been initialized properly and it is not really straightforward to track those bugs down. One way to help a bit at least is to dump zonelists of each node when they are (re)initialized. Signed-off-by: Michal Hocko --- mm/page_alloc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 2e097f336126..c30d59f803fb 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -5259,6 +5259,11 @@ static void build_zonelists(pg_data_t *pgdat) build_zonelists_in_node_order(pgdat, node_order, nr_nodes); build_thisnode_zonelists(pgdat); + + pr_info("node[%d] zonelist: ", pgdat->node_id); + for_each_zone_zonelist(zone, z, &pgdat->node_zonelists[ZONELIST_FALLBACK], MAX_NR_ZONES-1) + pr_cont("%d:%s ", zone_to_nid(zone), zone->name); + pr_cont("\n"); } #ifdef CONFIG_HAVE_MEMORYLESS_NODES -- 2.20.1