Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763595AbXILAE5 (ORCPT ); Tue, 11 Sep 2007 20:04:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755955AbXILAEq (ORCPT ); Tue, 11 Sep 2007 20:04:46 -0400 Received: from netops-testserver-3-out.sgi.com ([192.48.171.28]:45393 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754619AbXILAEm (ORCPT ); Tue, 11 Sep 2007 20:04:42 -0400 Date: Tue, 11 Sep 2007 17:04:41 -0700 (PDT) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: Andrea Arcangeli 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) In-Reply-To: <20070911232657.GB14675@v2.random> Message-ID: 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 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1588 Lines: 33 On Wed, 12 Sep 2007, Andrea Arcangeli wrote: > On Tue, Sep 11, 2007 at 01:41:08PM -0700, Christoph Lameter wrote: > > The advantages of this approach over Andreas is basically that the 4k > > filesystems still can be used as is. 4k is useful for binaries and for > > If you mean that with my approach you can't use a 4k filesystem as is, > that's not correct. I even run the (admittedly premature but > promising) benchmarks on my patch on a 4k blocksized > filesystem... Guess what, you can even still mount a 1k fs on a 2.6 > kernel. Right you can use a 4k filesystem. The 4k blocks are buffers in a larger page then. > The main advantage I can see in your patch is that distributions won't > need to ship a 64k PAGE_SIZE kernel rpm (but your single rpm will be > slower). 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 of memory because even a file with one character needs an order N page? So there are less pages available for the same workload. 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. - 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/