From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2992944AbXDDPfJ (ORCPT ); Wed, 4 Apr 2007 11:35:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S2992933AbXDDPfJ (ORCPT ); Wed, 4 Apr 2007 11:35:09 -0400 Received: from mx2.suse.de ([195.135.220.15]:48196 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2992944AbXDDPfG (ORCPT ); Wed, 4 Apr 2007 11:35:06 -0400 Date: Wed, 4 Apr 2007 17:34:51 +0200 From: Andrea Arcangeli To: Hugh Dickins Cc: Dan Aloni , Nick Piggin , Andrew Morton , Linus Torvalds , Linux Memory Management List , tee@sgi.com, holt@sgi.com, Linux Kernel Mailing List Subject: Re: [rfc] no ZERO_PAGE? Message-ID: <20070404153451.GH19587@v2.random> References: <20070330024048.GG19407@wotan.suse.de> <20070404033726.GE18507@wotan.suse.de> <20070404102407.GA529@wotan.suse.de> <20070404122701.GB19587@v2.random> <20070404135530.GA29026@localdomain> <20070404141457.GF19587@v2.random> <20070404144421.GA13762@localdomain> 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 On Wed, Apr 04, 2007 at 04:03:15PM +0100, Hugh Dickins wrote: > Maybe Nick will decide to not to mark the readfaults as dirty. I don't like to mark the pte readonly and clean, we'd be still optimizing for the current ZERO_PAGE users and even for those it would generate a unnecessary page fault if they later write to it. If any legitimate ZERO_PAGE user really exists, then we should keep mapping the ZERO_PAGE into it and fix the scalability issue associated with it, instead of allocating a new page in readonly mode. Marking anonymous pages readonly and clean so they can be collected w/o swapping still is desiderable for glibc through madvise (madvise would later need to be called again before starting using the collectable anon pages to store information into it), but that's an entirely different topic ;)