From owner-freebsd-hackers Mon Feb 15 20:41:33 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA28727 for freebsd-hackers-outgoing; Mon, 15 Feb 1999 20:41:33 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from iquest3.iquest.net (iquest3.iquest.net [209.43.20.203]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id UAA28722 for ; Mon, 15 Feb 1999 20:41:31 -0800 (PST) (envelope-from toor@y.dyson.net) Received: (qmail 20280 invoked from network); 16 Feb 1999 04:41:28 -0000 Received: from dyson.iquest.net (HELO y.dyson.net) (198.70.144.127) by iquest3.iquest.net with SMTP; 16 Feb 1999 04:41:28 -0000 Received: (from root@localhost) by y.dyson.net (8.9.1/8.9.1) id XAA00469; Mon, 15 Feb 1999 23:41:25 -0500 (EST) Message-Id: <199902160441.XAA00469@y.dyson.net> Subject: Re: vm_page_zero_fill In-Reply-To: <199902160344.VAA19696@home.dragondata.com> from Kevin Day at "Feb 15, 99 09:44:21 pm" To: toasty@home.dragondata.com (Kevin Day) Date: Mon, 15 Feb 1999 23:41:25 -0500 (EST) Cc: mike@smith.net.au, hackers@FreeBSD.ORG From: "John S. Dyson" Reply-To: dyson@iquest.net X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Kevin Day said: > > Perhaps a change that would allow for malloc()'ed and new'ed memory to be > able to take memory from the to-be-zero'ed list would be better, although > that may be more work than I'm looking for.... > That *might* be reasonable. A special sbrk or somesuch. That sbrk would make a non-prezeroed map entry. vm_fault would just avoid doing the zero. > > Maybe this isn't the big area for improvement I thought it would be.... > I don't know, but it still sounds reasonable. Excluding the duplicated break code (mostly a copy), the changes to the map code (addition of a flag or so), and fault code (check for the non-zero flag, and don't zero), that would be perhaps 20-50 lines of code or less. -- John | Never try to teach a pig to sing, dyson@iquest.net | it makes one look stupid jdyson@nc.com | and it irritates the pig. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message