Re: [PATCH][RFC][0/4] InfiniBand userspace verbs implementation

Andrew Morton
2005-04-29T00:56:18Z

Arjan van de Ven <arjan@infradead.org> wrote:
>
> > Why do you call mlock() and get_user_pages()? In our code, we only call mlock(), and the
> > memory is pinned.
>
> this is a myth; linux is free to move the page about in physical memory
> even if it's mlock()ed!!

eh? I guess the kernel _is_ free to move the page about, but it doesn't.

We might do at some time in the future for memory hotplug, I guess.