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

Frederic Weisbecker
2026-03-31T09:40:38Z

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@gmail.com>

Unbound kthreads are now handled by HK_TYPE_DOMAIN dynamically.

Thanks.

--
Frederic Weisbecker
SUSE Labs