From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756104AbbCCTvS (ORCPT ); Tue, 3 Mar 2015 14:51:18 -0500 Received: from resqmta-ch2-10v.sys.comcast.net ([69.252.207.42]:51585 "EHLO resqmta-ch2-10v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751441AbbCCTvR (ORCPT ); Tue, 3 Mar 2015 14:51:17 -0500 Date: Tue, 3 Mar 2015 13:51:12 -0600 (CST) From: Christoph Lameter X-X-Sender: cl@gentwo.org To: Eric B Munson cc: Vlastimil Babka , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Thomas Gleixner , Andrew Morton , Hugh Dickins , Mel Gorman , Roland Dreier , Sean Hefty , Hal Rosenstock , Mike Marciniszyn Subject: Re: Resurrecting the VM_PINNED discussion In-Reply-To: <20150303184520.GA4996@akamai.com> Message-ID: References: <20150303174105.GA3295@akamai.com> <54F5FEE0.2090104@suse.cz> <20150303184520.GA4996@akamai.com> Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 3 Mar 2015, Eric B Munson wrote: > > So you are saying that mlocking (VM_LOCKED) prevents migration and thus > > compaction to do its job? If that's true, I think it's a bug as it is AFAIK > > supposed to work just fine. > > Agreed. But as has been discussed in the threads around the VM_PINNED > work, there are people that are relying on the fact that VM_LOCKED > promises no minor faults. Which is why the behavoir has remained. AFAICT mlocking preventing migration is something that could be taken out. Google removes the restriction. mlocked does not promise no minor faults only that the page will stay resident. The pinning results in no faults. > VM_PINNED itself doesn't help us, but it would allow us to make > VM_LOCKED use only the weaker 'no major fault' semantics while still > providing a way for anyone that needs the stronger 'no minor fault' > promise to get the semantics they need. The semantics for mlock allow migration and therefore defrag as well as thp processing.