mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@infradead.org>
To: Qiliang Yuan <qiliang.yuan@linux.dev>
Cc: "Lorenzo Stoakes (ARM)" <ljs@kernel.org>,
	David Hildenbrand <david@kernel.org>,
	Rik van Riel <riel@surriel.com>,
	"Liam R. Howlett" <liam@infradead.org>,
	Vlastimil Babka <vbabka@kernel.org>, Harry Yoo <harry@kernel.org>,
	Jann Horn <jannh@google.com>, Lance Yang <lance.yang@linux.dev>,
	Andrew Morton <akpm@linux-foundation.org>,
	Kiryl Shutsemau <kas@kernel.org>,
	linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mm/rmap: flush the TLB once per mapping in page_vma_mkclean_one()
Date: Mon, 23 Nov 2026 15:21:03 +0000	[thread overview]
Message-ID: <awRZ36tj697iX0gC@casper.infradead.org> (raw)
In-Reply-To: <20261123120514.4141292-1-qiliang.yuan@linux.dev>

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)

      reply	other threads:[~2026-11-23 15:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 10:41 Qiliang Yuan
2026-11-23 11:53 ` Lorenzo Stoakes (ARM)
2026-11-23 12:05   ` Qiliang Yuan
2026-11-23 15:21     ` Matthew Wilcox [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=awRZ36tj697iX0gC@casper.infradead.org \
    --to=willy@infradead.org \
    --cc=akpm@linux-foundation.org \
    --cc=david@kernel.org \
    --cc=harry@kernel.org \
    --cc=jannh@google.com \
    --cc=kas@kernel.org \
    --cc=lance.yang@linux.dev \
    --cc=liam@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=ljs@kernel.org \
    --cc=qiliang.yuan@linux.dev \
    --cc=riel@surriel.com \
    --cc=vbabka@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®