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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B2FAAC433FE for ; Thu, 13 Oct 2022 11:44:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2615D6B0071; Thu, 13 Oct 2022 07:44:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 213488E0001; Thu, 13 Oct 2022 07:44:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0B1A86B0074; Thu, 13 Oct 2022 07:44:34 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id E99E36B0071 for ; Thu, 13 Oct 2022 07:44:33 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id BB22C41438 for ; Thu, 13 Oct 2022 11:44:33 +0000 (UTC) X-FDA: 80015743626.17.913BE92 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by imf05.hostedemail.com (Postfix) with ESMTP id 33B9E10002D for ; Thu, 13 Oct 2022 11:44:31 +0000 (UTC) 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> ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=suse.com header.s=susede1 header.b=DWT6zn20; spf=pass (imf05.hostedemail.com: domain of mhocko@suse.com designates 195.135.220.29 as permitted sender) smtp.mailfrom=mhocko@suse.com; dmarc=pass (policy=quarantine) header.from=suse.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1665661472; a=rsa-sha256; cv=none; b=tFIu01S0XlwOUkEvzaT0qQWR/LFTKw2tAnWEhiG/Z85PIXfs8pfLIrC+/1ogcw7JmEHtVi zMDw4FoBT78JXIoy0HM2nfdLzgS43IlSgTTWyI86V40EsumS/Bpp+Fs5SvXC5u30DyBdwm SCigtmZHu9iBf4m9MdEffrNbCSE1TFo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1665661472; 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-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=BMmSS4AY+rqawWn2v0MRI7PSJAdcG4hyfRiKwMa5Ogw=; b=AKzzjn22RZALqLYuMQpgQs2ao6Kd2C4dQUF5Ta3R1mTWaNHjCWpHUMurhJ4NY8C/80haUF o0MjjiIJnc+Xp+X0yadY9VhHHyLAzki6qDwV7QBvHLwXgCdk9AulFnNv2aXRjxqGrkPV0E itgYRZ5mhI64wfUIA1m0RccWLfr4GXc= X-Rspamd-Queue-Id: 33B9E10002D X-Rspam-User: Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=suse.com header.s=susede1 header.b=DWT6zn20; spf=pass (imf05.hostedemail.com: domain of mhocko@suse.com designates 195.135.220.29 as permitted sender) smtp.mailfrom=mhocko@suse.com; dmarc=pass (policy=quarantine) header.from=suse.com X-Rspamd-Server: rspam04 X-Stat-Signature: ca7kdsthe61ranewan9uh5ezbczt8xfj X-HE-Tag: 1665661471-409828 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: 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