Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751099AbVJFPmz (ORCPT ); Thu, 6 Oct 2005 11:42:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751100AbVJFPmz (ORCPT ); Thu, 6 Oct 2005 11:42:55 -0400 Received: from over.co.us.ibm.com ([32.97.110.157]:18360 "EHLO bldfb.esmtp.ibm.com") by vger.kernel.org with ESMTP id S1751099AbVJFPmy (ORCPT ); Thu, 6 Oct 2005 11:42:54 -0400 Subject: Re: [PATCH 0/3] Demand faulting for huge pages From: Adam Litke To: Hugh Dickins Cc: "David Gibson david"@gibson.dropbear.id.au, Andrew Morton , William Irwin , linux-kernel@vger.kernel.org, linux-mm@kvack.org In-Reply-To: References: <1127939141.26401.32.camel@localhost.localdomain> Content-Type: text/plain Organization: IBM Date: Thu, 06 Oct 2005 10:22:49 -0500 Message-Id: <1128612169.10109.12.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2172 Lines: 46 On Thu, 2005-09-29 at 14:32 +0100, Hugh Dickins wrote: > On Wed, 28 Sep 2005, Adam Litke wrote: > > > Hi Andrew. Can we give hugetlb demand faulting a spin in the mm tree? > > And could people with alpha, sparc, and ia64 machines give them a good > > spin? I haven't been able to test those arches yet. > > It's going to be a little confusing if these go in while I'm moving > the page_table_lock inwards. My patches don't make a big difference > to hugetlb (I've not attempted splitting the lock at all for hugetlb - > there would be per-arch implementation issues and very little point - > though more point if we do move to hugetlb faulting). But I'm ill at > ease with changing the locking at one end while it's unclear whether > it's right at the other end. > > Currently Adam's patches don't include my hugetlb changes already in > -mm; and I don't see any attention in his patches to the issue of > hugetlb file truncation, which I was fixing up in those. > > The current hugetlb_prefault guards against this with i_sem held: > which _appears_ to be a lock ordering violation, but may not be, > since the official lock ordering is determined by the possibility > of fault within write, whereas hugetlb mmaps were never faulting. > > Presumably on-demand hugetlb faulting would entail truncate_count > checking like do_no_page, and corresponding code in hugetlbfs. > > I've no experience of hugetlb use. Personally, I'd be very happy with > a decision to disallow truncation of hugetlb files (seems odd to allow > ftruncate when read and write are not allowed, and the size normally > determined automatically by mmap size); but I have to assume that it's > been allowed for good reason. If I were to spend time coding up a patch to remove truncation support for hugetlbfs, would it be something other people would want to see merged as well? -- Adam Litke - (agl at us.ibm.com) IBM Linux Technology Center - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/