Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1792526rwb; Thu, 29 Sep 2022 02:13:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4v9WiyWj5rOaPHUSkpTzCCtNV+pvZinaq733jjwFHZ56Bx0++q4aZcw+mgPXhs3sBjhuik X-Received: by 2002:a63:1849:0:b0:43c:8346:57f7 with SMTP id 9-20020a631849000000b0043c834657f7mr2006007pgy.222.1664442837734; Thu, 29 Sep 2022 02:13:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664442837; cv=none; d=google.com; s=arc-20160816; b=obAxeC0yod39/6YBGWHQb5Si070hMnFGftbnnmQNgUr9rkeyxplfDaOaCP1usM+RUX o6wmifuHaX3YxLPKaWOcT6SNq4/wnWos/KftsuQbPl/FOsjs1o7OcuGTtT62Wod3by6A LUIgY1V+zbk0NCcPeAwibUIhFMBLGJVNKEgTPjQNQCXKHLlt1G36glPLNDSLKbn7SXVr WzBowGw1SLvZK9Gzmca9KCIhxwzscHiyBgjBhpsTQlIzizpysTYF/PKXMFseoM6DnyQM +KJ8TE8Jc11BjHsmjZKlTwnukC5qcxqzhhnZCWnyhk42dIT89388GURBJnsrwjo1KU7q OgXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=HGXHV6nws60kbN7IUHu6/7cTkMhU5QGMA+F9vF0u7F0=; b=fZMgKaO1dvvuS0WE6ceieL/jZ10eWVFX0Y4wMJ9kFiKqgCy8bU6kVMQH3s7BVzc7Pq A86MSeyGOXp4LVYp3Sgj3sDpQsL3MoVNBCOGHK+EJw6nYLRGkm/CQ27g5g1uq+Zt1Axc QHoE2z/JSCf/X0yVc2T5JrI05ABntVeiE23LoNDA1AGcvqhDpx9SUPt0jwqaCHTRQJXx 0zObzfTeznLbqHhfcYo0NTwn1MKZGkcOQ3WAuyEtNqMz2j+BquJSXPaF2WEXEed7IeC8 oYopLBsu5XgpI/4DcNiWhm3xoUSg9C1ZM/MxynzS/q6/xn1gUUCcvhdkGf1tyvJLjVBj 212g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=i6tDbAJx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q18-20020a170902eb9200b00179c5d02ba1si3281738plg.442.2022.09.29.02.13.46; Thu, 29 Sep 2022 02:13:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=i6tDbAJx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234990AbiI2IP2 (ORCPT + 99 others); Thu, 29 Sep 2022 04:15:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234957AbiI2IPV (ORCPT ); Thu, 29 Sep 2022 04:15:21 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E928B1114EA for ; Thu, 29 Sep 2022 01:15:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1664439317; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HGXHV6nws60kbN7IUHu6/7cTkMhU5QGMA+F9vF0u7F0=; b=i6tDbAJxlAEXbNa0UjAzAswaGEpNC1Cixec9hHaH/YPMtx9YFjcUQwsyvO8Sv5AgwUIBi/ cVizmU9bFyBhqwgPYqvyVDV/X8szd8iGNIQaRyPLGWaKQbDjUeW42AqHhRZI+p7VrqnAc7 +ZKTRXlpKqHrCBMDxI6W27HwOjhd0Fk= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-660-FOa-iXBsOzyTRg0mGutyBg-1; Thu, 29 Sep 2022 04:15:16 -0400 X-MC-Unique: FOa-iXBsOzyTRg0mGutyBg-1 Received: by mail-wm1-f70.google.com with SMTP id p24-20020a05600c1d9800b003b4b226903dso2624826wms.4 for ; Thu, 29 Sep 2022 01:15:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date; bh=HGXHV6nws60kbN7IUHu6/7cTkMhU5QGMA+F9vF0u7F0=; b=UsKdZBxCJU+1nEh7pS6amhym8gfRtQ5A1bkzK5w5o8yhqvI4cu4weK8rBnwSZY/r6b ZHbs25RnsbP2siHlBrf7uYg8WiOLLcqWArRWaZOyb+vfdPtmEWo9Rp53YmKW1QvfGMxT Bbr+P9CHAAbnF48i7XT0pHw3lkrF0go4CwwzOQK+eJZSJy0diFrkEsvDSc6nNOroakJO WVh5CA/O7lagIYQbx2EDbPQaZNJRpbZTfi/BxAqO5nIXG98V/TvnXnHah1NHL1U/YCYo BAWrOPLCjWE35LPv7/OcXhVMyjVCxn+O5bg5nkrXvFoaS5YCnY6cNLx5uQAV0UooWvZP fznQ== X-Gm-Message-State: ACrzQf1pZVsDcoDVCZXfC9CP0Jmvch6cm8LdYdn9olp4vGkLlB5pQBih 4t6jHtCT3srTy4HYJFokrENHqnJJrxocUGKrP72yGForFA+/cXi+rQkJjTNDAA/Eze+kTq2Ka4d n8pZOetm4ZwQTeHvRj1kacgxX X-Received: by 2002:a5d:504c:0:b0:228:db0e:a4c9 with SMTP id h12-20020a5d504c000000b00228db0ea4c9mr1299909wrt.272.1664439315055; Thu, 29 Sep 2022 01:15:15 -0700 (PDT) X-Received: by 2002:a5d:504c:0:b0:228:db0e:a4c9 with SMTP id h12-20020a5d504c000000b00228db0ea4c9mr1299889wrt.272.1664439314779; Thu, 29 Sep 2022 01:15:14 -0700 (PDT) Received: from ?IPV6:2003:cb:c705:ce00:b5d:2b28:1eb5:9245? (p200300cbc705ce000b5d2b281eb59245.dip0.t-ipconnect.de. [2003:cb:c705:ce00:b5d:2b28:1eb5:9245]) by smtp.gmail.com with ESMTPSA id d16-20020adfe890000000b0021e4829d359sm6033406wrm.39.2022.09.29.01.15.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Sep 2022 01:15:14 -0700 (PDT) Message-ID: <8e61d0f4-0c40-6c2d-da60-fa97e2ee7530@redhat.com> Date: Thu, 29 Sep 2022 10:15:12 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH v2 2/9] mm/vmstat: show start_pfn when zone spans pages To: Doug Berger , 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 , Oscar Salvador , Michal Hocko , Joonsoo Kim , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org References: <20220928223301.375229-1-opendmb@gmail.com> <20220928223301.375229-3-opendmb@gmail.com> Content-Language: en-US From: David Hildenbrand Organization: Red Hat In-Reply-To: <20220928223301.375229-3-opendmb@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29.09.22 00:32, Doug Berger wrote: > 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. > I don't understand the intention here. "/* If unpopulated, no other information is useful */" Why would the start pfn be of any use here? What is the user visible impact without that change? > 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; > } -- Thanks, David / dhildenb