Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764688AbXILIUf (ORCPT ); Wed, 12 Sep 2007 04:20:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757593AbXILIUS (ORCPT ); Wed, 12 Sep 2007 04:20:18 -0400 Received: from ns.suse.de ([195.135.220.2]:36215 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754325AbXILIUQ (ORCPT ); Wed, 12 Sep 2007 04:20:16 -0400 Date: Wed, 12 Sep 2007 10:20:11 +0200 From: Andrea Arcangeli To: Christoph Lameter Cc: =?iso-8859-1?Q?J=F6rn?= Engel , Nick Piggin , torvalds@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig , Mel Gorman , William Lee Irwin III , David Chinner , Jens Axboe , Badari Pulavarty , Maxim Levitsky , Fengguang Wu , swin wang , totty.lu@gmail.com, hugh@veritas.com Subject: Re: [00/41] Large Blocksize Support V7 (adds memmap support) Message-ID: <20070912082011.GA21600@v2.random> References: <20070911060349.993975297@sgi.com> <200709110452.20363.nickpiggin@yahoo.com.au> <20070911121225.GE13132@lazybastard.org> <20070911202942.GB20688@lazybastard.org> <20070911232657.GB14675@v2.random> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1574 Lines: 30 On Tue, Sep 11, 2007 at 05:04:41PM -0700, Christoph Lameter wrote: > I would think that your approach would be slower since you always have to > populate 1 << N ptes when mmapping a file? Plus there is a lot of wastage I don't have to populate them, I could just map one at time. The only reason I want to populate every possible pte that could map that page (by checking vma ranges) is to _improve_ performance by decreasing the number of page faults of an order of magnitude. Then with the 62th bit after NX giving me a 64k tlb, I could decrease the frequency of the tlb misses too. > of memory because even a file with one character needs an order N page? So > there are less pages available for the same workload. This is a known issue. The same is true for ppc64 64k. If that really is an issue, that may need some generic solution with tail packing. > Then you are breaking mmap assumptions of applications becaused the order > N kernel will no longer be able to map 4k pages. You likely need a new > binary format that has pages correctly aligned. I know that we would need > one on IA64 if we go beyond the established page sizes. No you misunderstood the whole design. My patch will be 100% backwards compatible in all respects. If I could break backwards compatibility 70% of the complexity would go away... - 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/