From owner-freebsd-current Sun Jan 19 18:09:51 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id SAA03504 for current-outgoing; Sun, 19 Jan 1997 18:09:51 -0800 (PST) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id SAA03499 for ; Sun, 19 Jan 1997 18:09:47 -0800 (PST) Received: (from root@localhost) by dyson.iquest.net (8.8.4/8.6.9) id VAA00126; Sun, 19 Jan 1997 21:06:06 -0500 (EST) From: "John S. Dyson" Message-Id: <199701200206.VAA00126@dyson.iquest.net> Subject: Re: possible madvise MADV_FREE improvement To: dtc@scrooge.ee.swin.oz.au (Douglas Thomas Crosher) Date: Sun, 19 Jan 1997 21:06:06 -0500 (EST) Cc: current@FreeBSD.ORG In-Reply-To: <199701191019.VAA09832@scrooge.ee.swin.oz.au> from "Douglas Thomas Crosher" at Jan 19, 97 09:19:06 pm Reply-To: dyson@FreeBSD.ORG X-Mailer: ELM [version 2.4 PL24 ME8] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > Below is a patch which seems to improve madvise MADV_FREE; stops the > page-ins in the example recently posted. It also brings the call > closer to reliably zeroing the pages. > Thanks for the bug report, and I will be committing a fix in a little while (next hour or so) for the problem. Note that MADV_FREE does not guarantee that the page will be zeroed in any way. Specificially, MADV_FREE allows the system to optionally dispose of the contents of the page range, without paging it out. If the contents are disposed of, of course, the pages in the page range will be demand zeroed. John dyson@freebsd.org