Thread (119 messages) flat view 119 messages, 9 authors, 5d ago

Re: [RFC PATCH 00/57] mm/collapse: rebuild collapse on migration primitives

From: "David Hildenbrand (Arm)" <david@kernel.org>
Date: 2026-09-15 15:22:03
Also in: bpf, linux-kselftest, linux-trace-kernel, lkml

On 9/15/26 12:46, Kiryl Shutsemau wrote:
On Mon, Sep 14, 2026 at 05:07:37PM +0200, David Hildenbrand (Arm) wrote:
quoted
quoted
As I mentioned above, we drop the ptl after the freeze. And take it a
second time for the install.  Allocation and the copy run in between with
no lock held -- on 64K the copy at PMD order is 512M of it, which is why
it cannot sit under either lock.
Hold on, are freezing all folios to collapse? That cannot possibly work with
COW-shared folios that are mapped into other address spaces.
I break COW for worthy candidates in the faultin prepass before freeze,
alongside swapin. It simplifies the picture substantially. No rmap mess.
Hm, okay. So temporary memory allocations and page copying.

-- 
Cheers,

David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help