From: Nick Piggin Subject: Re: [00/41] Large Blocksize Support V7 (adds memmap support) Date: Tue, 11 Sep 2007 07:13:54 +1000 Message-ID: <200709110713.54781.nickpiggin@yahoo.com.au> References: <20070911060349.993975297@sgi.com> <200709110452.20363.nickpiggin@yahoo.com.au> <20070911121225.GE13132@lazybastard.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Christoph Lameter , andrea@suse.de, 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 To: =?utf-8?q?J=C3=B6rn_Engel?= Return-path: Received: from smtp101.mail.mud.yahoo.com ([209.191.85.211]:25312 "HELO smtp101.mail.mud.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1756014AbXIKMza convert rfc822-to-8bit (ORCPT ); Tue, 11 Sep 2007 08:55:30 -0400 In-Reply-To: <20070911121225.GE13132@lazybastard.org> Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Tuesday 11 September 2007 22:12, J=C3=B6rn Engel wrote: > On Tue, 11 September 2007 04:52:19 +1000, Nick Piggin wrote: > > On Tuesday 11 September 2007 16:03, Christoph Lameter wrote: > > > 5. VM scalability > > > Large block sizes mean less state keeping for the information = being > > > transferred. For a 1TB file one needs to handle 256 million pa= ge > > > structs in the VM if one uses 4k page size. A 64k page size re= duces > > > that amount to 16 million. If the limitation in existing files= ystems > > > are removed then even higher reductions become possible. For v= ery > > > large files like that a page size of 2 MB may be beneficial wh= ich > > > will reduce the number of page struct to handle to 512k. The > > > variable nature of the block size means that the size can be tune= d at > > > file system creation time for the anticipated needs on a volume. > > > > The idea that there even _is_ a bug to fail when higher order pages > > cannot be allocated was also brushed aside by some people at the > > vm/fs summit. I don't know if those people had gone through the > > math about this, but it goes somewhat like this: if you use a 64K > > page size, you can "run out of memory" with 93% of your pages free. > > If you use a 2MB page size, you can fail with 99.8% of your pages > > still free. That's 64GB of memory used on a 32TB Altix. > > While I agree with your concern, those numbers are quite silly. The They are the theoretical worst case. Obviously with a non trivially sized system and non-DoS workload, they will not be reached. > chances of 99.8% of pages being free and the remaining 0.2% being > perfectly spread across all 2MB large_pages are lower than those of S= HA1 > creating a collision. I don't see anyone abandoning git or rsync, so > your extreme example clearly is the wrong one. > > Again, I agree with your concern, even though your example makes it l= ook > silly. It is not simply a question of once-off chance for an all-at-once layou= t to fail in this way. Fragmentation slowly builds over time, and especia= lly if you do actually use higher-order pages for a significant number of things (unlike we do today), then the problem will become worse. If you have any part of your workload that is affected by fragmentation, then it will cause unfragmented regions to eventually be used for fragmentat= ion inducing allocations (by definition -- if it did not, eg. then there wo= uld be no fragmentation problem and no need for Mel's patches). I don't know what happens as time tends towards infinity, but I don't t= hink it will be good. At millions of allocations per second, how long does it take to produce an unacceptable number of free pages before the ENOMEM condition? =46urthermore, what *is* an unacceptable number? I don't know. I am not trying to push this feature in, so the burden is not mine to make sure = it is OK. Yes, we already have some of these problems today. Introducing more and worse problems and justifying them because of existing ones is much more silly than my quoting of the numbers. IMO. - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel= " in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html