Re: [PATCH] mm/memory hotplug/unplug: Optimize zone contiguous check when changing pfn range

From: Chen, Yu C

Date: Thu Mar 26 2026 - 03:39:21 EST


On 3/26/2026 3:30 PM, Liu, Yuan1 wrote:
-----Original Message-----

[ .... ]


Btw, can we introduce a new kernel command-line parameter to allow users to select
the memory block size? This could also address the current issue.

Test Results as below, memory block size 128MB Vs. 2GB
+----------------+------+---------------+--------------+----------------+
| | Size | 128MG | 2GB | Time Reduction |
| +------+---------------+--------------+----------------+
| Plug Memory | 256G | 10s | 3s | 70% |
| +------+---------------+--------------+----------------+
| | 512G | 36s | 7s | 81% |
+----------------+------+---------------+--------------+----------------+
+----------------+------+---------------+--------------+----------------+
| | Size | 128MG | 2GB | Time Reduction |
| +------+---------------+--------------+----------------+
| Unplug Memory | 256G | 11s | 3s | 72% |
| +------+---------------+--------------+----------------+
| | 512G | 36s | 7s | 81% |
+----------------+------+---------------+--------------+----------------+

And I see the UV system has already this (Kernel parameter is uv_memblksize).
I think if we can introduce a common kernel parameter for memory block size configuration?


Is it possible to turn uv_memblksize into a generic commandline memblksize without
introducing extra parameter?

thanks,
Chenyu