> -----Original Message----- > From: Mike Rapoport <rppt@kernel.org> > Sent: Monday, June 1, 2026 3:18 PM > To: Liu, Yuan1 <yuan1.liu@intel.com> > Cc: David Hildenbrand <david@kernel.org>; Oscar Salvador > <osalvador@suse.de>; Wei Yang <richard.weiyang@gmail.com>; linux- > mm@kvack.org; Hu, Yong <yong.hu@intel.com>; Zou, Nanhai > <nanhai.zou@intel.com>; Tim Chen <tim.c.chen@linux.intel.com>; Zhuo, Qiuxu > <qiuxu.zhuo@intel.com>; Chen, Yu C <yu.c.chen@intel.com>; Deng, Pan > <pan.deng@intel.com>; Li, Tianyou <tianyou.li@intel.com>; Chen Zhang > <zhangchen.kidd@jd.com>; Zeng, Jason <jason.zeng@intel.com>; linux- > kernel@vger.kernel.org > Subject: Re: [PATCH v5 0/5] mm/memory_hotplug: optimize zone contiguous > check when changing pfn range > > 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? Hi Mike Thanks for the reminder. I will take a closer look at Sashiko's comments. > -- > Sincerely yours, > Mike.
© 2016 - 2026 Red Hat, Inc.