Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755421AbXJIOxA (ORCPT ); Tue, 9 Oct 2007 10:53:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752137AbXJIOwx (ORCPT ); Tue, 9 Oct 2007 10:52:53 -0400 Received: from smtp2.linux-foundation.org ([207.189.120.14]:58419 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751495AbXJIOww (ORCPT ); Tue, 9 Oct 2007 10:52:52 -0400 Date: Tue, 9 Oct 2007 07:52:39 -0700 (PDT) From: Linus Torvalds To: Nick Piggin cc: Hugh Dickins , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: remove zero_page (was Re: -mm merge plans for 2.6.24) In-Reply-To: <200710090117.47610.nickpiggin@yahoo.com.au> Message-ID: References: <20071001142222.fcaa8d57.akpm@linux-foundation.org> <200710030345.10026.nickpiggin@yahoo.com.au> <200710090117.47610.nickpiggin@yahoo.com.au> 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: 1101 Lines: 25 On Tue, 9 Oct 2007, Nick Piggin wrote: > > I have done some tests which indicate a couple of very basic common tools > don't do much zero-page activity (ie. kbuild). And also combined with some > logical arguments to say that a "sane" app wouldn't be using zero_page much. > (basically -- if the app cares about memory or cache footprint and is using > many pages of zeroes, then it should have a more compressed representation > of zeroes anyway). One of the things that zero-page has been used for is absolutely *huge* (but sparse) arrays in Fortan programs. At least in traditional fortran, it was very hard to do dynamic allocations, so people would allocate the *maximum* array statically, and then not necessarily use everything. I don't know if the pages ever even got paged in, but this is the kind of usage which is *not* insane. Linus - 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/