From patchwork Tue Feb 12 09:53:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Hocko X-Patchwork-Id: 1040485 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43zJ5210dyz9s3l for ; Tue, 12 Feb 2019 20:58:30 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 43zJ5202MFzDqNp for ; Tue, 12 Feb 2019 20:58:30 +1100 (AEDT) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=209.85.208.67; helo=mail-ed1-f67.google.com; envelope-from=mstsxfx@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Received: from mail-ed1-f67.google.com (mail-ed1-f67.google.com [209.85.208.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 43zHzr2fWrzDqNk for ; Tue, 12 Feb 2019 20:54:00 +1100 (AEDT) Received: by mail-ed1-f67.google.com with SMTP id d9so1596714edh.12 for ; Tue, 12 Feb 2019 01:54:00 -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=tpwRmfyNRA/Bks2cLmIxp+Im3OBhAqNA6QpeAeW8nzLjcNz2dODKE/WcJkJaNtGHc4 N4xb0GGixUxTbujsYPD5OvkHvavpuf1cq59gFsUS7KZfm4dabxTDCuooEcLMJHym2Lv8 glMbd6RXBrQ3QKHE4nhYb5JIiFigg/lBKQBcheXM7nFtPT5YFTcTxwKiAs+kKCbXf23B rHKxzr2h3uVDBGqYkUgB5RMyi6+fqUeCS8qmV01oxtcc3s6pO58q07Ub48uT5xciON6t r+QkEQ+VWKEpO1Iwv69DRzIrTA97u+WG8pdsGLCQ4JBCaMqxa/LXzSSMMKh82rwEwvZh O8Vg== X-Gm-Message-State: AHQUAubRGrCi6HocqIV+U/LzhK+CkLm150yOC6m1K2l9s90We344TWTz 8K9oMADsu60eQGdr1qyM6Zc= X-Google-Smtp-Source: AHgI3IaDbQaoXUddyxRvptd1P3Q3Dkjw68Kopy2TfOs74h07Sehg+Np/NzTW4ul6z23IsVehH0xtyg== 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: 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 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tony Luck , linux-ia64@vger.kernel.org, Peter Zijlstra , x86@kernel.org, LKML , Pingfan Liu , Dave Hansen , Michal Hocko , Ingo Molnar , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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