Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp759531rwi; Thu, 13 Oct 2022 05:03:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4yJ+B8XYEBqLB5X5rpnnylh/TFiJKnZw5zkk8EiI3+uNO5BoolZ9ZFgO2W07fwtPbAth5B X-Received: by 2002:a17:902:a707:b0:178:bd1e:e8be with SMTP id w7-20020a170902a70700b00178bd1ee8bemr34531594plq.167.1665662613414; Thu, 13 Oct 2022 05:03:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665662613; cv=none; d=google.com; s=arc-20160816; b=Ij4XaXS2uKuYY/v6POOOqB9uI1lndOTo6qC+up7FdiBaz3V73Fln0e6affeoY7pVg6 HpH9q/THcwB0hvez9smDsHuHhLZEUTPtJNCvzBEf/wvsNZ1zObU7pVmriS6g4Q762mt+ ZiYD9ErWDR0V9A3cZ0FC0UZBWX6BTXLvLRv/sRB0TcaZtZxplB/QDWqBFg2kGDMTz90T fkDXZ2wVZmJEbJFecOA5LgW0blvKMGA1W8EZ9epsq8H2wYfV74LXClzTVLLsdsLGQUZe HXZtn7YabwAPe+Io2PXGlGP+um15vZU7/imIJP7pLhFuLy1gcfiNKq3OFWaZnfhmUThe 5K4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BMmSS4AY+rqawWn2v0MRI7PSJAdcG4hyfRiKwMa5Ogw=; b=fUz4/D0ffXCJg588htPDDcmmmPY56wnFQLgorFAYbdtfRdQJojZ/cahVgmFbGWNrAP GblLLH9IQd0M1wHH+uBnX4bAzPZS6GUrn7F7Fsei+ZMe3jPJH3MoZ9gWFkBBl8+Bwob6 /ZTOMAJOO0e9KiRpnac1OqagpVakqUrnkAflTEaI3GjiE+jvvTT0YdmseLwF5JOH4TVR ZWGZXo5EZri0xvqsDXYlYqjrZbBUBW3h+vCnURrZ/3aoylr/93K1YMiuRCrEcHjqnYEs Ey0n1XB3HmnOxQ+9fONelpmsICB+7Lu7bBZ3QeQGbIXkju0FDKKLjRQDyZhcBd8Xwn9Z Hrlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=DWT6zn20; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h1-20020a654681000000b0044e466f456fsi21136800pgr.750.2022.10.13.05.03.19; Thu, 13 Oct 2022 05:03:33 -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=@suse.com header.s=susede1 header.b=DWT6zn20; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229563AbiJMLog (ORCPT + 99 others); Thu, 13 Oct 2022 07:44:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbiJMLoe (ORCPT ); Thu, 13 Oct 2022 07:44:34 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3102DB3B0E; Thu, 13 Oct 2022 04:44:32 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id CE3D01F385; Thu, 13 Oct 2022 11:44:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1665661470; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BMmSS4AY+rqawWn2v0MRI7PSJAdcG4hyfRiKwMa5Ogw=; b=DWT6zn20CotUlTzz2xVrLPR3wa2YHyYxf9oklHlkMjE8Ok84nJW7owpjekrewoYht9fQFR yp1FjzS2Df62DH6PlkG/sXwvdgM0FO+7X5PdW+p0elIiVAU7/F/9sA2iCAJpQtRqlj4IUv dGiACvcwo1AtxIcvNajqTHyWZrnsTpQ= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 9F9EC13AAA; Thu, 13 Oct 2022 11:44:30 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id lYugJB76R2MZagAAMHmgww (envelope-from ); Thu, 13 Oct 2022 11:44:30 +0000 Date: Thu, 13 Oct 2022 13:44:29 +0200 From: Michal Hocko To: Doug Berger Cc: David Hildenbrand , Andrew Morton , 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 , Joonsoo Kim , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v2 2/9] mm/vmstat: show start_pfn when zone spans pages Message-ID: References: <20220928223301.375229-1-opendmb@gmail.com> <20220928223301.375229-3-opendmb@gmail.com> <8e61d0f4-0c40-6c2d-da60-fa97e2ee7530@redhat.com> <84ee3d9e-9579-d3f2-fe5a-ec6ec4a2710a@redhat.com> <0f038010-ed83-55bb-70a5-24f5c6d68666@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0f038010-ed83-55bb-70a5-24f5c6d68666@gmail.com> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 Wed 12-10-22 16:57:53, Doug Berger wrote: [...] > I was working from the notion that the classic 'movablecore' implementation > keeps the ZONE_MOVABLE zone the last zone on System RAM so it always spans > the last page on the node (i.e. 0x33ffff000). My implementation moves the > start of ZONE_MOVABLE up to the lowest page of any defined DMBs on the node. I wouldn't rely on movablecore specific implementation. ZONE_MOVABLE can span any physical address range. ZONE_NORMAL usually covers any ranges not covered by more specific zones like ZONE_DMA{32}. At least on most architectures I am familiar with. -- Michal Hocko SUSE Labs