Re: [PATCH] mm/rmap: flush the TLB once per mapping in page_vma_mkclean_one()
From: Matthew Wilcox
Date: Mon Nov 23 2026 - 10:21:17 EST
On Mon, Nov 23, 2026 at 07:05:14AM -0500, Qiliang Yuan wrote:
> For this one, I was looking at how AI training jobs save checkpoints.
> Writing a checkpoint through a shared mapping was 3-4x slower than
> write()
Shared writable mmaps are a terrible idea. It doesn't surpise me that
lazy AI people do this, but your efforts would be better spent fixing
userspace to Not Do That.
https://numi.st/post/2024/mmap/
https://db.cs.cmu.edu/papers/2022/cidr2022-p13-crotty.pdf
(and many, many more articles along these lines)