Optimize zone->contiguous update and issue fix
Subsystems (4)
v6 cover Optimize zone->contiguous update and issue fix
This series contains 2 patches, the first one add a fast path to check the zone->contiguous, the second one fix an issue when check the zone->contiguous at the slow path during zone grows. The issue fixed by the second patch can be found in the original code path without the first patch.
Tianyou Li (1):
mm/memory hotplug/unplug: Optimize zone->contiguous update when
changes pfn range
Yuan Liu (1):
mm/memory hotplug: fix zone->contiguous always false when hotplug
Changes History
===============
v2 changes:
Add check_zone_contiguous_fast function to check zone contiguity for new memory PFN ranges.
v3 changes:
Add zone contiguity check for empty zones.
v4 changes:
1. Improve coding style.
2. Add fast path for zone contiguity check in memory unplugged cases, and update test results.
3. Refactor set_zone_contiguous: the new set_zone_contiguous updates zone contiguity based on the fast path results.
v5 changes:
1. Improve coding style.
2. Fix a issue in which zone->contiguous was always false when adding new memory, leveraging the fast path optimization.
v6 changes:
1. Improve coding style.
2. Add comments.
mm/internal.h | 8 ++++- mm/memory_hotplug.c | 75 +++++++++++++++++++++++++++++++++++++++++++-- mm/mm_init.c | 12 ++++++-- 3 files changed, 89 insertions(+), 6 deletions(-)
Signature · 1 line
2.47.1
PATCH v6 1/2 mm/memory hotplug/unplug: Optimize zone->contiguous update when changes pfn range
When invoke move_pfn_range_to_zone or remove_pfn_range_from_zone, it will update the zone->contiguous by checking the new zone's pfn range from the beginning to the end, regardless the previous state of the old zone. When the zone's pfn range is large, the cost of traversing the pfn range to update the zone->contiguous could be significant.
Add fast paths to quickly detect cases where zone is definitely not contiguous without scanning the new zone. The cases are: when the new range did not overlap with previous range, the contiguous should be false; if the new range adjacent with the previous range, just need to check the new range; if the new added pages could not fill the hole of previous zone, the contiguous should be false.
The following test cases of memory hotplug for a VM [1], tested in the environment [2], show that this optimization can significantly reduce the memory hotplug time [3].
+----------------+------+---------------+--------------+----------------+ | | Size | Time (before) | Time (after) | Time Reduction | | +------+---------------+--------------+----------------+ | Plug Memory | 256G | 10s | 2s | 80% | | +------+---------------+--------------+----------------+ | | 512G | 33s | 6s | 81% | +----------------+------+---------------+--------------+----------------+
+----------------+------+---------------+--------------+----------------+ | | Size | Time (before) | Time (after) | Time Reduction | | +------+---------------+--------------+----------------+ | Unplug Memory | 256G | 10s | 2s | 80% | | +------+---------------+--------------+----------------+ | | 512G | 34s | 6s | 82% | +----------------+------+---------------+--------------+----------------+
[1] Qemu commands to hotplug 256G/512G memory for a VM:
object_add memory-backend-ram,id=hotmem0,size=256G/512G,share=on device_add virtio-mem-pci,id=vmem1,memdev=hotmem0,bus=port1 qom-set vmem1 requested-size 256G/512G (Plug Memory) qom-set vmem1 requested-size 0G (Unplug Memory)
[2] Hardware : Intel Icelake server
Guest Kernel : v6.18-rc2
Qemu : v9.0.0
Launch VM :
qemu-system-x86_64 -accel kvm -cpu host \
-drive file=./Centos10_cloud.qcow2,format=qcow2,if=virtio \
-drive file=./seed.img,format=raw,if=virtio \
-smp 3,cores=3,threads=1,sockets=1,maxcpus=3 \
-m 2G,slots=10,maxmem=2052472M \
-device pcie-root-port,id=port1,bus=pcie.0,slot=1,multifunction=on \
-device pcie-root-port,id=port2,bus=pcie.0,slot=2 \
-nographic -machine q35 \
-nic user,hostfwd=tcp::3000-:22
Guest kernel auto-onlines newly added memory blocks:
echo online > /sys/devices/system/memory/auto_online_blocks[3] The time from typing the QEMU commands in [1] to when the output of 'grep MemTotal /proc/meminfo' on Guest reflects that all hotplugged memory is recognized.
--- mm/internal.h | 8 +++++- mm/memory_hotplug.c | 65 ++++++++++++++++++++++++++++++++++++++++++--- mm/mm_init.c | 12 +++++++-- 3 files changed, 79 insertions(+), 6 deletions(-)
mm/internal.h +7 -1
@@ -730,7 +730,13 @@ static inline struct page *pageblock_pfn_to_page(unsigned long start_pfn,return __pageblock_pfn_to_page (start_pfn, end_pfn, zone); } -void set_zone_contiguous (struct zone *zone); +enum zone_contig_state { +ZONE_CONTIG_YES , +ZONE_CONTIG_NO , +ZONE_CONTIG_MAYBE , +}; + +void set_zone_contiguous (struct zone *zone,enum zone_contig_state state);bool pfn_range_intersects_zones (int nid,unsigned long start_pfn,unsigned long nr_pages);
mm/memory_hotplug.c +62 -3
106 lines not on this page · raw message
mm/mm_init.c +10 -2
@@ -2263,11 +2263,19 @@ void __init init_cma_pageblock(struct page *page) }#endif -void set_zone_contiguous (struct zone *zone) +void set_zone_contiguous (struct zone *zone,enum zone_contig_state state) {unsigned long block_start_pfn = zone->zone_start_pfn;unsigned long block_end_pfn; +if (state ==ZONE_CONTIG_YES ) { + zone->contiguous = true; +return ; + } + +if (state ==ZONE_CONTIG_NO ) +return ; + block_end_pfn =pageblock_end_pfn (block_start_pfn); for (; block_start_pfn < zone_end_pfn(zone); block_start_pfn = block_end_pfn,
@@ -2348,7 +2356,7 @@ void __init page_alloc_init_late(void)shuffle_free_memory (NODE_DATA (nid));for_each_populated_zone (zone) -set_zone_contiguous (zone); +set_zone_contiguous (zone,ZONE_CONTIG_MAYBE );/* Initialize page ext after all struct pages are initialized. */ if (deferred_struct_pages)
Signature · 1 line
2.47.1
PATCH v6 2/2 mm/memory hotplug: fix zone->contiguous always false when hotplug
In reply to Tianyou LiFrom: Yuan Liu <[email protected]>
Function set_zone_contiguous used __pageblock_pfn_to_page to check the whole pageblock is in the same zone. One assumption is the memory section must online, otherwise the __pageblock_pfn_to_page will return NULL, then the set_zone_contiguous will be false. When move_pfn_range_to_zone invoked set_zone_contiguous, since the memory section did not online, the return value will always be false.
To fix this issue, we removed the set_zone_contiguous from the move_pfn_range_to_zone, and place it after memory section onlined.
Function remove_pfn_range_from_zone did not have this issue because memory section remains online at the time set_zone_contiguous invoked.
--- mm/memory_hotplug.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-)
mm/memory_hotplug.c +14 -4
@@ -810,8 +810,7 @@ void move_pfn_range_to_zone(struct zone *zone, unsigned long start_pfn, {struct pglist_data *pgdat = zone->zone_pgdat;int nid = pgdat->node_id; -const enum zone_contig_state new_contiguous_state = -zone_contig_state_after_growing (zone, start_pfn, nr_pages); +clear_zone_contiguous (zone);if (zone_is_empty (zone))
@@ -841,8 +840,6 @@ void move_pfn_range_to_zone(struct zone *zone, unsigned long start_pfn,memmap_init_range (nr_pages, nid,zone_idx (zone), start_pfn,0 ,MEMINIT_HOTPLUG , altmap, migratetype, isolate_pageblock); - -set_zone_contiguous (zone, new_contiguous_state); }struct auto_movable_stats {
@@ -1151,6 +1148,7 @@ int mhp_init_memmap_on_memory(unsigned long pfn, unsigned long nr_pages, {unsigned long end_pfn = pfn + nr_pages;int ret, i; +enum zone_contig_state new_contiguous_state =ZONE_CONTIG_NO ; ret =kasan_add_zero_shadow (__va (PFN_PHYS (pfn)),PFN_PHYS (nr_pages));if (ret)
@@ -1165,6 +1163,14 @@ int mhp_init_memmap_on_memory(unsigned long pfn, unsigned long nr_pages,if (mhp_off_inaccessible)page_init_poison (pfn_to_page (pfn),sizeof (struct page ) * nr_pages); +/* +* If the allocated memmap pages are not in a full section, keep the +* contiguous state as ZONE_CONTIG_NO. +*/ +if (IS_ALIGNED (end_pfn,PAGES_PER_SECTION )) + new_contiguous_state =zone_contig_state_after_growing (zone, + pfn, nr_pages); +move_pfn_range_to_zone (zone, pfn, nr_pages,NULL ,MIGRATE_UNMOVABLE , false);
@@ -1183,6 +1189,7 @@ int mhp_init_memmap_on_memory(unsigned long pfn, unsigned long nr_pages,if (nr_pages >=PAGES_PER_SECTION )online_mem_sections (pfn,ALIGN_DOWN (end_pfn,PAGES_PER_SECTION )); +set_zone_contiguous (zone, new_contiguous_state);return ret; }
@@ -1221,6 +1228,7 @@ int online_pages(unsigned long pfn, unsigned long nr_pages, };const int nid =zone_to_nid (zone);int need_zonelists_rebuild =0 ; +enum zone_contig_state new_contiguous_state =ZONE_CONTIG_NO ;unsigned long flags;int ret;
@@ -1235,6 +1243,7 @@ int online_pages(unsigned long pfn, unsigned long nr_pages, !IS_ALIGNED(pfn + nr_pages, PAGES_PER_SECTION)))return -EINVAL ; + new_contiguous_state =zone_contig_state_after_growing (zone, pfn, nr_pages);/* associate pfn range with the zone */ move_pfn_range_to_zone(zone, pfn, nr_pages, NULL, MIGRATE_MOVABLE,
@@ -1273,6 +1282,7 @@ int online_pages(unsigned long pfn, unsigned long nr_pages, }online_pages_range (pfn, nr_pages); +set_zone_contiguous (zone, new_contiguous_state);adjust_present_page_count (pfn_to_page (pfn), group, nr_pages);if (node_arg.nid >=0 )
Signature · 1 line
2.47.1
Mike Rapoport
maintainerRe: [PATCH v6 2/2] mm/memory hotplug: fix zone->contiguous always false when hotplug
Hi,
Quoted 9 lines · Tianyou Li
From: Yuan Liu <[email protected]>
Function
set_zone_contiguousused__pageblock_pfn_to_pageto check the whole pageblock is in the same zone. One assumption is the memory section must online, otherwise the__pageblock_pfn_to_pagewill return NULL, then theset_zone_contiguouswill be false. Whenmove_pfn_range_to_zoneinvokedset_zone_contiguous, since the memory section did not online, the return value will always be false.
Quoted 5 lines
To fix this issue, we removed the
set_zone_contiguousfrom themove_pfn_range_to_zone, and place it after memory section onlined.Function
remove_pfn_range_from_zonedid not have this issue because memory section remains online at the timeset_zone_contiguousinvoked.
Since the fix is relevant even without the optimization patch, can we please reorder the patches so that the fix will be the first in the series? Than it can be applied to stable trees as well.
Quoted 88 lines
Reviewed-by Tianyou Li <[email protected]>Reviewed-by Nanhai Zou <[email protected]>Signed-off-by Yuan Liu <[email protected]>--- mm/memory_hotplug.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-)mm/memory_hotplug.c +14
-4@@ -810,8 +810,7 @@ void move_pfn_range_to_zone(struct zone *zone, unsigned long start_pfn, {struct pglist_data *pgdat = zone->zone_pgdat;int nid = pgdat->node_id; -const enum zone_contig_state new_contiguous_state = -zone_contig_state_after_growing (zone, start_pfn, nr_pages); +clear_zone_contiguous (zone);if (zone_is_empty (zone))@@ -841,8 +840,6 @@ void move_pfn_range_to_zone(struct zone *zone, unsigned long start_pfn,memmap_init_range (nr_pages, nid,zone_idx (zone), start_pfn,0 ,MEMINIT_HOTPLUG , altmap, migratetype, isolate_pageblock); - -set_zone_contiguous (zone, new_contiguous_state); }struct auto_movable_stats {@@ -1151,6 +1148,7 @@ int mhp_init_memmap_on_memory(unsigned long pfn, unsigned long nr_pages, {unsigned long end_pfn = pfn + nr_pages;int ret, i; +enum zone_contig_state new_contiguous_state =ZONE_CONTIG_NO ; ret =kasan_add_zero_shadow (__va (PFN_PHYS (pfn)),PFN_PHYS (nr_pages));if (ret)@@ -1165,6 +1163,14 @@ int mhp_init_memmap_on_memory(unsigned long pfn, unsigned long nr_pages,if (mhp_off_inaccessible)page_init_poison (pfn_to_page (pfn),sizeof (struct page ) * nr_pages); +/* +* If the allocated memmap pages are not in a full section, keep the +* contiguous state as ZONE_CONTIG_NO. +*/ +if (IS_ALIGNED (end_pfn,PAGES_PER_SECTION )) + new_contiguous_state =zone_contig_state_after_growing (zone, + pfn, nr_pages); +move_pfn_range_to_zone (zone, pfn, nr_pages,NULL ,MIGRATE_UNMOVABLE , false);@@ -1183,6 +1189,7 @@ int mhp_init_memmap_on_memory(unsigned long pfn, unsigned long nr_pages,if (nr_pages >=PAGES_PER_SECTION )online_mem_sections (pfn,ALIGN_DOWN (end_pfn,PAGES_PER_SECTION )); +set_zone_contiguous (zone, new_contiguous_state);return ret; }@@ -1221,6 +1228,7 @@ int online_pages(unsigned long pfn, unsigned long nr_pages, };const int nid =zone_to_nid (zone);int need_zonelists_rebuild =0 ; +enum zone_contig_state new_contiguous_state =ZONE_CONTIG_NO ;unsigned long flags;int ret;@@ -1235,6 +1243,7 @@ int online_pages(unsigned long pfn, unsigned long nr_pages, !IS_ALIGNED(pfn + nr_pages, PAGES_PER_SECTION)))return -EINVAL ; + new_contiguous_state =zone_contig_state_after_growing (zone, pfn, nr_pages);/* associate pfn range with the zone */ move_pfn_range_to_zone(zone, pfn, nr_pages, NULL, MIGRATE_MOVABLE,@@ -1273,6 +1282,7 @@ int online_pages(unsigned long pfn, unsigned long nr_pages, }online_pages_range (pfn, nr_pages); +set_zone_contiguous (zone, new_contiguous_state);adjust_present_page_count (pfn_to_page (pfn), group, nr_pages);if (node_arg.nid >=0 )Signature · 1 line
2.47.1
Signature · 2 lines
Sincerely yours, Mike.
Re: [PATCH v6 2/2] mm/memory hotplug: fix zone->contiguous always false when hotplug
Quoted 12 lines · Mike Rapoport
Hi,
Quoted 9 lines · Tianyou Li
From: Yuan Liu <[email protected]>
Function
set_zone_contiguousused__pageblock_pfn_to_pageto check the whole pageblock is in the same zone. One assumption is the memory section must online, otherwise the__pageblock_pfn_to_pagewill return NULL, then theset_zone_contiguouswill be false. Whenmove_pfn_range_to_zoneinvokedset_zone_contiguous, since the memory section did not online, the return value will always be false.
Quoted 8 lines
Quoted 5 lines
To fix this issue, we removed the
set_zone_contiguousfrom themove_pfn_range_to_zone, and place it after memory section onlined.Function
remove_pfn_range_from_zonedid not have this issue because memory section remains online at the timeset_zone_contiguousinvoked.Since the fix is relevant even without the optimization patch, can we please reorder the patches so that the fix will be the first in the series? Than it can be applied to stable trees as well.
Thanks for the comments. That's totally make sense. I will work on the patch v7, will rebase with 6.19-rc1. I will be out of office next week, probably slow response but will keep working on the patch with Yuan Liu. Thanks.
Regards,
Tianyou
Quoted 89 lines
Quoted 89 lines
Reviewed-by Tianyou Li <[email protected]>Reviewed-by Nanhai Zou <[email protected]>Signed-off-by Yuan Liu <[email protected]>--- mm/memory_hotplug.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-)mm/memory_hotplug.c +14
-4@@ -810,8 +810,7 @@ void move_pfn_range_to_zone(struct zone *zone, unsigned long start_pfn, {struct pglist_data *pgdat = zone->zone_pgdat;int nid = pgdat->node_id; -const enum zone_contig_state new_contiguous_state = -zone_contig_state_after_growing (zone, start_pfn, nr_pages); +clear_zone_contiguous (zone);if (zone_is_empty (zone))@@ -841,8 +840,6 @@ void move_pfn_range_to_zone(struct zone *zone, unsigned long start_pfn,memmap_init_range (nr_pages, nid,zone_idx (zone), start_pfn,0 ,MEMINIT_HOTPLUG , altmap, migratetype, isolate_pageblock); - -set_zone_contiguous (zone, new_contiguous_state); }struct auto_movable_stats {@@ -1151,6 +1148,7 @@ int mhp_init_memmap_on_memory(unsigned long pfn, unsigned long nr_pages, {unsigned long end_pfn = pfn + nr_pages;int ret, i; +enum zone_contig_state new_contiguous_state =ZONE_CONTIG_NO ; ret =kasan_add_zero_shadow (__va (PFN_PHYS (pfn)),PFN_PHYS (nr_pages));if (ret)@@ -1165,6 +1163,14 @@ int mhp_init_memmap_on_memory(unsigned long pfn, unsigned long nr_pages,if (mhp_off_inaccessible)page_init_poison (pfn_to_page (pfn),sizeof (struct page ) * nr_pages); +/* +* If the allocated memmap pages are not in a full section, keep the +* contiguous state as ZONE_CONTIG_NO. +*/ +if (IS_ALIGNED (end_pfn,PAGES_PER_SECTION )) + new_contiguous_state =zone_contig_state_after_growing (zone, + pfn, nr_pages); +move_pfn_range_to_zone (zone, pfn, nr_pages,NULL ,MIGRATE_UNMOVABLE , false);@@ -1183,6 +1189,7 @@ int mhp_init_memmap_on_memory(unsigned long pfn, unsigned long nr_pages,if (nr_pages >=PAGES_PER_SECTION )online_mem_sections (pfn,ALIGN_DOWN (end_pfn,PAGES_PER_SECTION )); +set_zone_contiguous (zone, new_contiguous_state);return ret; }@@ -1221,6 +1228,7 @@ int online_pages(unsigned long pfn, unsigned long nr_pages, };const int nid =zone_to_nid (zone);int need_zonelists_rebuild =0 ; +enum zone_contig_state new_contiguous_state =ZONE_CONTIG_NO ;unsigned long flags;int ret;@@ -1235,6 +1243,7 @@ int online_pages(unsigned long pfn, unsigned long nr_pages, !IS_ALIGNED(pfn + nr_pages, PAGES_PER_SECTION)))return -EINVAL ; + new_contiguous_state =zone_contig_state_after_growing (zone, pfn, nr_pages);/* associate pfn range with the zone */ move_pfn_range_to_zone(zone, pfn, nr_pages, NULL, MIGRATE_MOVABLE,@@ -1273,6 +1282,7 @@ int online_pages(unsigned long pfn, unsigned long nr_pages, }online_pages_range (pfn, nr_pages); +set_zone_contiguous (zone, new_contiguous_state);adjust_present_page_count (pfn_to_page (pfn), group, nr_pages);if (node_arg.nid >=0 )Signature · 1 line
2.47.1
Re: [PATCH v6 2/2] mm/memory hotplug: fix zone->contiguous always false when hotplug
Thank you all for your great comments and suggestions. Patch v7 has been tested by Yuan Liu and sent for your kind review. Looking forward to your comments. Thanks.
Regards,
Tianyou
Quoted 114 lines · Tianyou
Quoted 12 lines · Mike Rapoport
Hi,
Quoted 9 lines · Tianyou Li
From: Yuan Liu <[email protected]>
Function
set_zone_contiguousused__pageblock_pfn_to_pageto check the whole pageblock is in the same zone. One assumption is the memory section must online, otherwise the__pageblock_pfn_to_pagewill return NULL, then theset_zone_contiguouswill be false. Whenmove_pfn_range_to_zoneinvokedset_zone_contiguous, since the memory section did not online, the return value will always be false.Quoted 8 lines
Quoted 5 lines
To fix this issue, we removed the
set_zone_contiguousfrom themove_pfn_range_to_zone, and place it after memory section onlined.Function
remove_pfn_range_from_zonedid not have this issue because memory section remains online at the timeset_zone_contiguousinvoked.Since the fix is relevant even without the optimization patch, can we please reorder the patches so that the fix will be the first in the series? Than it can be applied to stable trees as well.
Thanks for the comments. That's totally make sense. I will work on the patch v7, will rebase with 6.19-rc1. I will be out of office next week, probably slow response but will keep working on the patch with Yuan Liu. Thanks.
Regards,
Tianyou
Quoted 82 lines
Quoted 82 lines
Reviewed-by Tianyou Li <[email protected]>Reviewed-by Nanhai Zou <[email protected]>Signed-off-by Yuan Liu <[email protected]>---
mm/memory_hotplug.c| 18 ++++++++++++++----1 file changed, 14 insertions(+), 4 deletions(-)mm/memory_hotplug.c +2
-4@@ -810,8 +810,7 @@ void move_pfn_range_to_zone(struct zone *zone, unsigned long start_pfn, { struct pglist_data *pgdat = zone->zone_pgdat; int nid = pgdat->node_id; - const enum zone_contig_state new_contiguous_state = - zone_contig_state_after_growing(zone, start_pfn, nr_pages); + clear_zone_contiguous(zone); if (zone_is_empty(zone))@@ -841,8 +840,6 @@ void move_pfn_range_to_zone(struct zone *zone,unsigned long start_pfn, memmap_init_range(nr_pages, nid, zone_idx(zone), start_pfn, 0, MEMINIT_HOTPLUG, altmap, migratetype, isolate_pageblock); - - set_zone_contiguous(zone, new_contiguous_state); } struct auto_movable_stats {@@ -1151,6 +1148,7 @@ int mhp_init_memmap_on_memory(unsigned long pfn, unsigned long nr_pages, { unsigned long end_pfn = pfn + nr_pages; int ret, i; + enum zone_contig_state new_contiguous_state = ZONE_CONTIG_NO; ret = kasan_add_zero_shadow(__va(PFN_PHYS(pfn)), PFN_PHYS(nr_pages)); if (ret)@@ -1165,6 +1163,14 @@ int mhp_init_memmap_on_memory(unsigned long pfn, unsigned long nr_pages, if (mhp_off_inaccessible) page_init_poison(pfn_to_page(pfn), sizeof(struct page) * nr_pages);+ /*
+ * If the allocated memmap pages are not in a full section,
keep the
+ * contiguous state asZONE_CONTIG_NO.
+ */
+ if (IS_ALIGNED(end_pfn, PAGES_PER_SECTION))
+new_contiguous_state= zone_contig_state_after_growing(zone,
+ pfn,nr_pages);
+
move_pfn_range_to_zone(zone, pfn, nr_pages, NULL, MIGRATE_UNMOVABLE, false);
@@ -1183,6 +1189,7 @@ int mhp_init_memmap_on_memory(unsigned long pfn, unsigned longnr_pages, if (nr_pages>=PAGES_PER_SECTION)
online_mem_sections(pfn, ALIGN_DOWN(end_pfn, PAGES_PER_SECTION)); +set_zone_contiguous(zone, new_contiguous_state);
return ret;
}
@@ -1221,6 +1228,7 @@ int online_pages(unsigned long pfn, unsigned longnr_pages, };
const int nid =zone_to_nid(zone);
intneed_zonelists_rebuild= 0;
+ enumzone_contig_statenew_contiguous_state=ZONE_CONTIG_NO;
unsigned long flags;
int ret;
@@ -1235,6 +1243,7 @@ intonline_pages(unsigned long pfn, unsigned long nr_pages, !IS_ALIGNED(pfn + nr_pages, PAGES_PER_SECTION)))
return-EINVAL;
+new_contiguous_state=zone_contig_state_after_growing(zone, pfn, nr_pages); /* associate pfn range with the zone */
move_pfn_range_to_zone(zone, pfn,nr_pages, NULL,MIGRATE_MOVABLE,mm/memory_hotplug.c +1
-0@@ -1273,6 +1282,7 @@ int online_pages(unsigned long pfn, unsignedlong nr_pages, } online_pages_range(pfn, nr_pages); + set_zone_contiguous(zone, new_contiguous_state); adjust_present_page_count(pfn_to_page(pfn), group, nr_pages); if (node_arg.nid >= 0)Signature · 1 line
2.47.1