From patchwork Wed Sep 28 22:32:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Berger X-Patchwork-Id: 12993201 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3158EC04A95 for ; Wed, 28 Sep 2022 22:33:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C68356B0078; Wed, 28 Sep 2022 18:33:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C18486B007B; Wed, 28 Sep 2022 18:33:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A925D6B007D; Wed, 28 Sep 2022 18:33:51 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 9A8866B0078 for ; Wed, 28 Sep 2022 18:33:51 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 5CDE71207D7 for ; Wed, 28 Sep 2022 22:33:51 +0000 (UTC) X-FDA: 79962947862.22.162ACF1 Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) by imf13.hostedemail.com (Postfix) with ESMTP id B65F720022 for ; Wed, 28 Sep 2022 22:33:50 +0000 (UTC) Received: by mail-qt1-f172.google.com with SMTP id c11so8864412qtw.8 for ; Wed, 28 Sep 2022 15:33:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=6/+RylwAUS1L6kGkdbzNevLkV7SCUovxqo9fjOaS6JU=; b=kC/0LNb9bktbL+TEwR3l+o6fUDutxrrSeCaNe1//+eoGCAW+xNZO4DlmQHy9VcTyfS NwAIyqoskQm/m5kv6XZ4r7B1ACZBqZis8V/cQNWWyzM9pA3Is409pWX7+mJZ+/N2vvBI YozbOIh7aY5FgIxfp56OJu1Gme5MA8TIs7VrQ4zlIKfuDoRx/M7tAtjTXSP7dzFQ50dF x6WJ/l4IoBT3rvV++v7Beym46s0QSrWDIFgJllEiXfwCqYwnQOCcV3XO4+cbD8UDzrDC Fgpv0bDTnfoI7cOl7Bdut11t3RGz5K9z2orfa9hNqZxWTfMH5f4yEJcCefUWQ9e0L4rd pWOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=6/+RylwAUS1L6kGkdbzNevLkV7SCUovxqo9fjOaS6JU=; b=ZiCy5+/n3aJP/c6U8tkjutdQhsydtjfpDRPFdV03Ad6GULU+v2raYV4LIPK5B79FEv YQ0FAun7LCHAy3dovvMmErEtuQf+VSIhBN/hK48YfyjO52nKxWCNOn8dRS1Qdl4WTg9+ LGEizKU1OCI4EeZymucED4p9vlodPWMH0b2y5grD8F9rcSjP3R30tNOSqHC16zhE8K4O TopIrkYBzW73y6xY0LYLoLp3iv9jhLy6peXztMdFDg+mXheo/+hq2vf4/DStZXEa2x83 8x4ams3vag7brJHL5GBVc3e4srONoRUjC0mX9rywHbo9E4KXzHAY7m2Bu/b7dgGuKAHT 9uJA== X-Gm-Message-State: ACrzQf1JVXoEagrvv6s4R+SC7HbL+yIEQelAXBVNf4BJrn+PPjRtzNu8 SerK/FeyRlm6ZGDLd8FIu7w= X-Google-Smtp-Source: AMsMyM6j7B74qZOjrMnDAmps4FdyuXPteigyZvK3BDi31VGk6vlpVOIX8YjcSQSYPDGzBZGstAm8RA== X-Received: by 2002:a05:622a:138f:b0:35b:bb7b:743c with SMTP id o15-20020a05622a138f00b0035bbb7b743cmr33120qtk.361.1664404429867; Wed, 28 Sep 2022 15:33:49 -0700 (PDT) Received: from stbirv-lnx-3.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id j188-20020a37b9c5000000b006bb83c2be40sm3963481qkf.59.2022.09.28.15.33.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Sep 2022 15:33:49 -0700 (PDT) From: Doug Berger To: Andrew Morton Cc: Jonathan Corbet , Mike Rapoport , Borislav Petkov , "Paul E. McKenney" , Neeraj Upadhyay , Randy Dunlap , Damien Le Moal , Muchun Song , KOSAKI Motohiro , Mel Gorman , Mike Kravetz , Florian Fainelli , David Hildenbrand , Oscar Salvador , Michal Hocko , Joonsoo Kim , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Doug Berger Subject: [PATCH v2 2/9] mm/vmstat: show start_pfn when zone spans pages Date: Wed, 28 Sep 2022 15:32:54 -0700 Message-Id: <20220928223301.375229-3-opendmb@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220928223301.375229-1-opendmb@gmail.com> References: <20220928223301.375229-1-opendmb@gmail.com> MIME-Version: 1.0 ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="kC/0LNb9"; spf=pass (imf13.hostedemail.com: domain of opendmb@gmail.com designates 209.85.160.172 as permitted sender) smtp.mailfrom=opendmb@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1664404430; a=rsa-sha256; cv=none; b=Qr6SYd9mi2F1zkDMsjcsu9NTEg0iVUKSh2Mx7je/ocE/wObNnhe+7ADitgoIXVuzoWpb7g R2gvzDn+k5kswvBeU5C2Su2H70Dx6MQu/CjfcN31TcRWUdtVY0kziwRWaGOew/urknhGqA ItDLiqFmS5ax+3gzIw1N6G5vhOur9sk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1664404430; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=6/+RylwAUS1L6kGkdbzNevLkV7SCUovxqo9fjOaS6JU=; b=HAid4nLV4ct+mp9KZMLkaBgeoX1B6wf0FmPk5yIfPnf6IQbYym5FsV1s4MXW4R69pTC2T5 LmoqiRxoo1I1TIETfFLJNAXg40oa6UE/0IkMdt4NcFQ0ZJJsM9PY3j+KhMfOoyApI9Rysz pDu1a9DJgCPKcJH6mL8UvpLkqsUwEG0= Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="kC/0LNb9"; spf=pass (imf13.hostedemail.com: domain of opendmb@gmail.com designates 209.85.160.172 as permitted sender) smtp.mailfrom=opendmb@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Stat-Signature: 3x15uizxapt8tufejc18z3a6n7b5dork X-Rspamd-Queue-Id: B65F720022 X-Rspam-User: X-Rspamd-Server: rspam11 X-HE-Tag: 1664404430-204338 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: A zone that overlaps with another zone may span a range of pages that are not present. In this case, displaying the start_pfn of the zone allows the zone page range to be identified. Signed-off-by: Doug Berger --- mm/vmstat.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mm/vmstat.c b/mm/vmstat.c index 90af9a8572f5..e2f19f2b7615 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c @@ -1717,6 +1717,11 @@ static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat, /* If unpopulated, no other information is useful */ if (!populated_zone(zone)) { + /* Show start_pfn for empty overlapped zones */ + if (zone->spanned_pages) + seq_printf(m, + "\n start_pfn: %lu", + zone->zone_start_pfn); seq_putc(m, '\n'); return; }