From owner-freebsd-hackers Wed Nov 20 18: 2:33 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE78437B401 for ; Wed, 20 Nov 2002 18:02:32 -0800 (PST) Received: from HAL9000.homeunix.com (12-232-220-15.client.attbi.com [12.232.220.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 129A743E8A for ; Wed, 20 Nov 2002 18:02:32 -0800 (PST) (envelope-from dschultz@uclink.berkeley.edu) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id gAL22Um9002154; Wed, 20 Nov 2002 18:02:30 -0800 (PST) (envelope-from dschultz@uclink.berkeley.edu) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id gAL22UVv002153; Wed, 20 Nov 2002 18:02:30 -0800 (PST) (envelope-from dschultz@uclink.berkeley.edu) Date: Wed, 20 Nov 2002 18:02:30 -0800 From: David Schultz To: Tony Finch Cc: hackers@freebsd.org Subject: Re: cvs commit: src/bin/sleep sleep.c Message-ID: <20021121020230.GA2107@HAL9000.homeunix.com> Mail-Followup-To: Tony Finch , hackers@freebsd.org References: <200211170158.gAH1wJhc035731@apollo.backplane.com> <20021117034219.13731.qmail@web41201.mail.yahoo.com> <20021117034219.13731.qmail@web41201.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Tony Finch : > David Schultz wrote: > > > >BSS and modified data are not shared, and Matt is only counting > >zero fill and COW faults. > > Most of the BSS is mmapped zero pages that are copy-on-write, so in simple > programs they should be mostly shared. See rtld-elf/map_object.c Once those pages are written to, the kernel must fault in a fresh zero-filled page. Since the BSS typically holds uninitialized data, we can probably assume that the program is going to initialize most of it at some point, so there will be very few shared BSS pages. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message