Thread (58 messages) 58 messages, 12 authors, 2021-11-30

Re: [PATCH] Increase default MLOCK_LIMIT to 8 MiB

From: Jason Gunthorpe <jgg@ziepe.ca>
Date: 2021-11-23 13:25:29
Also in: io-uring, linux-mm, lkml

On Mon, Nov 22, 2021 at 09:08:47PM +0100, David Hildenbrand wrote:
quoted
You can't use mmu notifiers without impacting the fast path. This isn't
just about io_uring, there are other users of memlock right now (like
bpf) which just makes it even worse.
1) Do we have a performance evaluation? Did someone try and come up with
a conclusion how bad it would be?
It needs additional locking between page readers and the mmu notifier.

One of the virtio things does this thing and they used rcu on the page
readers and a synchronize rcu in a mmu notifier - which I think is
pretty bad.
2) Could be provide a mmu variant to ordinary users that's just good
enough but maybe not as fast as what we have today? And limit
FOLL_LONGTERM to special, privileged users?
rdma has never been privileged

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