Re: [PATCH] mm/madvise: add cond_resched() in THP branch of madvise_cold_or_pageout_pte_range()

From: Gregory Price

Date: Mon Oct 12 2026 - 09:56:24 EST


On Sat, Oct 10, 2026 at 10:40:42AM +0800, albin_yang@xxxxxxx wrote:
>
> During stress testing with stress-ng on a 256-CPU system, a softlockup
> was observed when madvise(MADV_COLD) was called on a 31GB memory region
> backed by transparent hugepages. The region contains 15935 THP PMD
> entries, and the softlockup was triggered after 14485 of them had been
> processed.
>
...
>
> Signed-off-by: Wei Yang <albinwyang@xxxxxxxxxxx>

Reviewed-by: Gregory Price (Meta) <gourry@xxxxxxxxxx>