Re: [PATCH 09/15] mm/compaction: Support dynamic housekeeping mask updates for kcompactd

From: Frederic Weisbecker

Date: Tue Mar 31 2026 - 05:40:49 EST


Le Wed, Mar 25, 2026 at 05:09:40PM +0800, Qiliang Yuan a écrit :
> The kcompactd threads are affined to housekeeping CPUs (HK_TYPE_DOMAIN)
> at boot to avoid interference with isolated workloads. Currently,
> these threads do not migrate when the housekeeping boundaries are
> reconfigured at runtime.
>
> Implement a housekeeping notifier to synchronize kcompactd affinity.
>
> This ensures that background compaction threads honor the dynamic
> isolation boundaries configured via the DHEI sysfs interface.
>
> Signed-off-by: Qiliang Yuan <realwujing@xxxxxxxxx>

Unbound kthreads are now handled by HK_TYPE_DOMAIN dynamically.

Thanks.

--
Frederic Weisbecker
SUSE Labs