[ofa-general] Re: [patch 01/10] emm: mm_lock: Lock a process against reclaim
Andrea Arcangeli
andrea at qumranet.com
Mon Apr 7 12:35:44 PDT 2008
On Mon, Apr 07, 2008 at 12:02:53PM -0700, Jeremy Fitzhardinge wrote:
> It's per-mm though. How many processes would need to have notifiers?
There can be up to hundreds of VM in a single system. Not sure to
understand the point of the question though.
> Well, its definitely going to need more comments then. I assumed it would
> end up locking everything, so unlocking everything would be sufficient.
After your comments, I'm writing an alternate version that will
guarantee a O(N) worst case to both sigkill and cond_resched but
frankly this is low priority. Without mmu notifiers /dev/kvm can't be
given to a normal luser without at least losing mlock ulimits, so lack
of a mmu notifiers is a bigger issue than whatever complexity in
mm_lock as far as /dev/kvm ownership is concerned.
More information about the general
mailing list