From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx141.postini.com [74.125.245.141]) by kanga.kvack.org (Postfix) with SMTP id C31936B004D for ; Mon, 14 May 2012 03:49:56 -0400 (EDT) Message-ID: <1336981790.2443.20.camel@twins> Subject: Re: Allow migration of mlocked page? From: Peter Zijlstra Date: Mon, 14 May 2012 09:49:50 +0200 In-Reply-To: <1336981501.2443.19.camel@twins> References: <4FAC9786.9060200@kernel.org> <1336728026.1017.7.camel@twins> <4FB0866D.4020203@kernel.org> <1336978573.2443.13.camel@twins> <4FB0B61E.6040902@kernel.org> <1336981501.2443.19.camel@twins> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Sender: owner-linux-mm@kvack.org List-ID: To: Minchan Kim Cc: Johannes Weiner , Mel Gorman , Rik van Riel , Andrew Morton , Andrea Arcangeli , KAMEZAWA Hiroyuki , Christoph Lameter , "linux-mm@kvack.org" , tglx@linutronix.de, Ingo Molnar , Theodore Ts'o On Mon, 2012-05-14 at 09:45 +0200, Peter Zijlstra wrote: > On Mon, 2012-05-14 at 16:37 +0900, Minchan Kim wrote: > > What's the meaning of "locked"? Isn't it pinning? >=20 > It doesn't say, the best inference I can make is that locked means the > effect of mlock() which is defined as: 'to be memory-resident', esp. so > since it then states: 'until unlocked' (or exit/exec). >=20 > So basically the statement: 'locked and memory-resident' is redundant. And alternative interpretation of that statement is that mlock() whould keep pages memory-resident, but also make them memory-resident. IE, it should fault the entire range in before returning the system-call. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org