Re: cvs commit: src/sys/kern vfs_syscalls.c

[ Available lists | Index of cvs-all | Month of Dec 1998 | Week of 12 Dec 1998 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Eivind Eklund <eivind@yes.no>
Date
12 Dec 1998 15:07:14
Subject
Re: cvs commit: src/sys/kern vfs_syscalls.c
Message-ID
19981213000659.A5444@follo.net


[ Hide this part ]
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 cvs-all" in the body of the message


Elapsed time: 0.108 seconds