Thread (40 messages) 40 messages, 4 authors, 2024-01-31

Re: [PATCH v1 0/9] mm/memory: optimize unmap/zap with PTE-mapped THP

From: Michal Hocko <mhocko@suse.com>
Date: 2024-01-31 14:03:53
Also in: linux-arch, linux-mm, linux-s390, lkml

On Wed 31-01-24 11:16:01, David Hildenbrand wrote:
[...]
This 10000 pages limit was introduced in 53a59fc67f97 ("mm: limit mmu_gather
batching to fix soft lockups on !CONFIG_PREEMPT") where we wanted to handle
soft-lockups.
AFAIR at the time of this patch this was mostly just to put some cap on
the number of batches to collect and free at once. If there is a lot of
free memory and a large process exiting this could grow really high. Now
that those pages^Wfolios can represent larger memory chunks it could
mean more physical memory being freed but from which might make the
operation take longer but still far from soft lockup triggering.

Now latency might suck on !PREEMPT kernels with too many pages to
free in a single batch but I guess this is somehow expected for this
preemption model. The soft lockup has to be avoided because this can
panic the machine in some configurations.

-- 
Michal Hocko
SUSE Labs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help