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