From owner-freebsd-hackers Sat Dec 12 15:07:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA08492 for freebsd-hackers-outgoing; Sat, 12 Dec 1998 15:07:12 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA08476; Sat, 12 Dec 1998 15:07:08 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.1a/8.9.1) with ESMTP id AAA25047; Sun, 13 Dec 1998 00:07:04 +0100 (CET) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id AAA27336; Sun, 13 Dec 1998 00:07:04 +0100 (MET) Message-ID: <19981213000659.A5444@follo.net> Date: Sun, 13 Dec 1998 00:06:59 +0100 From: Eivind Eklund To: Dag-Erling Smorgrav , Matt Dillon Cc: hackers@FreeBSD.ORG Subject: Re: cvs commit: src/sys/kern vfs_syscalls.c References: <199812122107.NAA12093@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: ; from Dag-Erling Smorgrav on Sat, Dec 12, 1998 at 11:49:20PM +0100 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Dec 12, 1998 at 11:49:20PM +0100, Dag-Erling Smorgrav wrote: > Speaking of kernel dumps, what happens to physical memory pages when > they're not in use? Are they zeroed? If not, is it possible to add a > kernel option that zeroes out unused pages, or fills them with a fixed > pattern (e.g. f001f001 og deadbeef)? That would make kernel dumps more > compressible... They are zeroed so approx 1/2 the free pages are zeroed. The percentage was based on John's intuition. The reason to not zero all is that zeroing still cost CPU cache lines, I think. The zeroing is done in the idle loop, or when there are "way too few zeroed pages available". All of this is from my memory of the code, so you should check with reality (the code itself). Eivind. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message