On Thu, Nov 03, 2005 at 01:32:15PM +0000, Hugh Dickins wrote: > On Thu, 3 Nov 2005, Gleb Natapov wrote: > > On Thu, Nov 03, 2005 at 09:22:10AM +1100, Benjamin Herrenschmidt wrote: > > > Also, what do you suggest as a good threshold to use on the max amount > > > of memory I can let the X server "pin" that way ? I was thinking it as > > > equivalent to mlock, thus I could maybe hijack mm->locked_vm & use > > > RLIMIT_MEMLOCK or is that too gross ? > > > > > This is what infiniband does, so it should be good for you too. > > Yes, I noticed that code a couple of days ago, I think you're setting a > good example there, for long-term or large-area uses of get_user_pages(): > Ben, take a look at drivers/infiniband/core/uverbs_mem.c > Credit goes to Roland Dreier :) -- Gleb. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: Nick's core remove PageReserved broke vmware...
- From: Benjamin Herrenschmidt <[email protected]>
- Re: Nick's core remove PageReserved broke vmware...
- References:
- Re: Nick's core remove PageReserved broke vmware...
- From: Nick Piggin <[email protected]>
- Re: Nick's core remove PageReserved broke vmware...
- From: Petr Vandrovec <[email protected]>
- Re: Nick's core remove PageReserved broke vmware...
- From: Hugh Dickins <[email protected]>
- Re: Nick's core remove PageReserved broke vmware...
- From: Benjamin Herrenschmidt <[email protected]>
- Re: Nick's core remove PageReserved broke vmware...
- From: Hugh Dickins <[email protected]>
- Re: Nick's core remove PageReserved broke vmware...
- From: Benjamin Herrenschmidt <[email protected]>
- Re: Nick's core remove PageReserved broke vmware...
- From: Hugh Dickins <[email protected]>
- Re: Nick's core remove PageReserved broke vmware...
- From: Benjamin Herrenschmidt <[email protected]>
- Re: Nick's core remove PageReserved broke vmware...
- From: Gleb Natapov <[email protected]>
- Re: Nick's core remove PageReserved broke vmware...
- From: Hugh Dickins <[email protected]>
- Re: Nick's core remove PageReserved broke vmware...
- Prev by Date: Re: Nick's core remove PageReserved broke vmware...
- Next by Date: Re: Nick's core remove PageReserved broke vmware...
- Previous by thread: Re: Nick's core remove PageReserved broke vmware...
- Next by thread: Re: Nick's core remove PageReserved broke vmware...
- Index(es):