From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A94D2C04A95 for ; Thu, 29 Sep 2022 08:15:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234886AbiI2IPY (ORCPT ); Thu, 29 Sep 2022 04:15:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234824AbiI2IPV (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 CBF551114E1 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-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-556-Z0pyPKAqPAeaM4D3UzLdMA-1; Thu, 29 Sep 2022 04:15:16 -0400 X-MC-Unique: Z0pyPKAqPAeaM4D3UzLdMA-1 Received: by mail-wm1-f71.google.com with SMTP id c2-20020a1c3502000000b003b535aacc0bso2630155wma.2 for ; Thu, 29 Sep 2022 01:15:16 -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=C9S4V7KCIPJSF6IzYjUFS+k8mm9XYax003JpU/9Z/Hh1RzYKCVczLwcuOJ+lBrGNC2 +S2uyoKFr7UgN210qU/g+cJwrs6if7EPRncVMcWLyaU4TK+a027qKd/I+viXouNmE6iL S41GLzjEY/aBvjaET3+ItysAh8rfmbPVDemDfcEqF6HOOtRNNHhMDHcM3Jtn7wuINyAj lu0/syJt8cXJAUZsn9PMgYauqqBlqOPmZCwM2yjQLdNITzKWX/OpoL7OylqiDN3Dd1uS QuZpTkRTUsZgqpyHeV/n30w2cOikqZpwQRdYLZ8eaIy5d+XerQXfQ1qziKbvYDR0KPE7 RAMw== X-Gm-Message-State: ACrzQf1fAaA7xvxe/vQRcFJr5NTojwkY7UjBdzOQjXfgzpq9QLoj2okx 1Eg+FwptXqCOzbzjFIh0GM7m/mPoXMhiVUeKBa7K4DHF3wy41uOsOrRxJjhpFiNAoqWo1la4pPZ QgGya5dI0hxfelW/bz3jR X-Received: by 2002:a5d:504c:0:b0:228:db0e:a4c9 with SMTP id h12-20020a5d504c000000b00228db0ea4c9mr1299911wrt.272.1664439315056; Thu, 29 Sep 2022 01:15:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM54jxnN0sDuqOjYfVkz+0Uai3rapONQWcUbZG/jUyignAWN5N/Gq9SKp+8AzTCFUD66/vwakg== 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 Precedence: bulk List-ID: X-Mailing-List: linux-doc@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