lkml.org 
[lkml]   [2021]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Increase default MLOCK_LIMIT to 8 MiB
On Mon, Nov 22, 2021 at 09:08:47PM +0100, David Hildenbrand wrote:

> > 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

\
 
 \ /
  Last update: 2021-11-23 14:26    [W:0.222 / U:0.788 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site