From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753047AbXDECac (ORCPT ); Wed, 4 Apr 2007 22:30:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752993AbXDECac (ORCPT ); Wed, 4 Apr 2007 22:30:32 -0400 Received: from ns1.suse.de ([195.135.220.2]:44238 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752546AbXDECab (ORCPT ); Wed, 4 Apr 2007 22:30:31 -0400 Date: Thu, 5 Apr 2007 04:30:26 +0200 From: Nick Piggin To: Linus Torvalds Cc: Valdis.Kletnieks@vt.edu, Hugh Dickins , Andrew Morton , Linux Memory Management List , tee@sgi.com, holt@sgi.com, Andrea Arcangeli , Linux Kernel Mailing List Subject: Re: [rfc] no ZERO_PAGE? Message-ID: <20070405023026.GE11192@wotan.suse.de> References: <20070329075805.GA6852@wotan.suse.de> <20070330024048.GG19407@wotan.suse.de> <20070404033726.GE18507@wotan.suse.de> <6701.1175724355@turing-police.cc.vt.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 04, 2007 at 05:27:31PM -0700, Linus Torvalds wrote: > > > On Wed, 4 Apr 2007, Valdis.Kletnieks@vt.edu wrote: > > > > I'd not be surprised if there's sparse-matrix code out there that wants to > > malloc a *huge* array (like a 1025x1025 array of numbers) that then only > > actually *writes* to several hundred locations, and relies on the fact that > > all the untouched pages read back all-zeros. > > Good point. In fact, it doesn't need to be a malloc() - I remember people > doing this with Fortran programs and just having an absolutely incredibly > big BSS (with traditional Fortran, dymic memory allocations are just not > done). Sparse matrices are one thing I worry about. I don't know enough about HPC code to know whether they will be a problem. I know there exist data structures to optimise sparse matrix storage...