From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C6C33438AA for ; Mon, 1 Jun 2026 07:18:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780298289; cv=none; b=W/5xUm+l9pNit+oc/vdSUmsEzweIW+rkLMxQLV/MSPA5oszenC58QRKAfinbXjrXhB6dyM8pGizsqJJhxO45ny+MgQqWHNnxukppTHzIcU5GZ7BphsMxBiMAe6zUd71mGGroOanZVsjwDW7t7lV13FOtbpCrQAs3tQrV75TgHsA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780298289; c=relaxed/simple; bh=POrLs36PxGUx+NV+86v05/AvsFkYKBpAN0Im7Aq4ldU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=G6/kebHD6+q8fcAYoNQqk1jbXnK/wFee7WVqCWV7tdPGLgLLlHjuFK4VXDDGUCl5lKsAfMtIY2fZJN2TaIJMIfP+WqNNmBLp6V87KrFgC2ZgM31cPNdCN+9gey43DhhkOTdAt/sNXBCo+3QIBZd3HjB4/H4UVvV+SXp230g9B60= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nNxmO3Hq; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nNxmO3Hq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A3111F00893; Mon, 1 Jun 2026 07:18:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780298287; bh=AmHe7bfRZ01Zg+Oucf9B7KSnbetVO+5F02Nzg1A6evI=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=nNxmO3Hqq0Zu8edGd9x+gAbv6cUNN1BM/8haw81IbzVLbSON+ZAZqOG8wncH18fMk g+gOnCAiu0XAkQIDUNnUFyvkfrPYaT1AygaYv0XNHbCkyt8UOv7hgkiurjK4995ynp X6gHxMEnh+6svd8N+8Qtz3J1ACG9hfyrq8u/Iv/vRbkxUDSr4SvwvN37YsHKpexh+M XPC3oJmuYtCt15fTI/jWuNA601V0fRNV1Pr60QTqzYNF1Gj4KVhHdGLFaH8B33gbJO KIN4O3VPJ2WFzdnoY6V9Vy87ZTqRxI5DUZ1aaeRyfQF7jjd6CeQ4z1VzjVjKrduzSy H2onq8dK3Wdlg== Date: Mon, 1 Jun 2026 10:17:59 +0300 From: Mike Rapoport To: Yuan Liu Cc: David Hildenbrand , Oscar Salvador , Wei Yang , linux-mm@kvack.org, Yong Hu , Nanhai Zou , Tim Chen , Qiuxu Zhuo , Yu C Chen , Pan Deng , Tianyou Li , Chen Zhang , Jason Zeng , linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 0/5] mm/memory_hotplug: optimize zone contiguous check when changing pfn range Message-ID: References: <20260520093457.3719960-1-yuan1.liu@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260520093457.3719960-1-yuan1.liu@intel.com> Hi, On Wed, May 20, 2026 at 05:34:52AM -0400, Yuan Liu wrote: > This series introduces a pages_with_online_memmap member into struct zone > to avoid pageblock-by-pageblock scans across the entire zone and improve > memory hotplug performance. > > For VM hotplug performance data, please refer to Patch 4. > This series also benefits CXL hotplug. Performance results are as follows > https://lore.kernel.org/all/20260409023552.GA2807@AE/ > > Yuan Liu (5): > mm: move mirrored memory overlap checking to the outer loop > mm: skip non-mirrored ZONE_NORMAL memory map init when > kernelcore=mirror > mm: remove the special early-section handling from pfn_valid() and > for_each_valid_pfn() > mm/memory_hotplug: optimize zone contiguous check when changing pfn > range > mm/memory_hotplug: improve shrink_zone_span() subsection boundary > checks > > Documentation/mm/physical_memory.rst | 13 +++++ > drivers/base/memory.c | 6 ++ > include/linux/mmzone.h | 60 +++++++++++++++++--- > mm/internal.h | 8 +-- > mm/memory_hotplug.c | 54 +++++++++--------- > mm/mm_init.c | 83 +++++++++++----------------- > mm/sparse-vmemmap.c | 4 +- > 7 files changed, 136 insertions(+), 92 deletions(-) Sashiko has a few comments: https://sashiko.dev/#/patchset/20260520093457.3719960-3-yuan1.liu@intel.com Can you please check them? -- Sincerely yours, Mike.