From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751268AbdJDQFg (ORCPT ); Wed, 4 Oct 2017 12:05:36 -0400 Received: from resqmta-ch2-06v.sys.comcast.net ([69.252.207.38]:41978 "EHLO resqmta-ch2-06v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750966AbdJDQFf (ORCPT ); Wed, 4 Oct 2017 12:05:35 -0400 Date: Wed, 4 Oct 2017 11:05:33 -0500 (CDT) From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Anshuman Khandual cc: Mike Kravetz , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Marek Szyprowski , Michal Nazarewicz , "Aneesh Kumar K.V" , Joonsoo Kim , Guy Shattah Subject: Re: [RFC] mmap(MAP_CONTIG) In-Reply-To: <97c81533-5206-b130-1aeb-c5b9bfd93287@linux.vnet.ibm.com> Message-ID: References: <21f1ec96-2822-1189-1c95-79a2bb491571@oracle.com> <97c81533-5206-b130-1aeb-c5b9bfd93287@linux.vnet.ibm.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-CMAE-Envelope: MS4wfNieXLqtd2VWIrmfZzcxHaDfgSNdMPNhx45+WO9/h8rRyTrb7RF6ojMjZ6TqZv72A8X9qRndIk0j9//cEAd/WVY+9FgvUB/nszyNtpiRGO7oFk09ES/h ZzxBIwi72rNXvB1B7ZCsasyk1G4yF6iPQgGhboDSNvRIS6K8BZ5NWtOjoBHGqgZOCnSMzbVSmhjqbQq+3Uin3YJQDQByRRYfz0Ie0/bzcOGpCalQ+PWSPI69 GgYRfZCTM0CAiA/xRwF9jxOXuORQbqIp+gcEKLCap4DLJY3ggNdx5oaNWHRHA4nQf14Jk7+lKWFkDd5ai3txJ76S2AeiJUwnXYtz6NJiHTF//p0/9FI8Bv8T WyMFVS3Nj85OrzQds35YYiA91WF0QVbPY/Cy+q4huXvLV8N3BBX15IRA/tNJLBOyvNdXOjtvrNkVzuGOm42288lkEUPc+Iw6GB21n11+MT9FVS8G7CPXNrGy nFAWzd+SlCT9xGN/ Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 4 Oct 2017, Anshuman Khandual wrote: > > - Using 'pre-allocated' pages in the fault paths may be intrusive. > > But we have already faulted in all of them for the mapping and they > are also locked. Hence there should not be any page faults any more > for the VMA. Am I missing something here ? The PTEs may be torn down and have to reestablished through a page faults. Page faults would not allocate memory. > I am still wondering why wait till fault time not pre fault all of them > and populate the page tables. They are populated but some processes (swap and migration) may tear them down.