From owner-freebsd-hackers Thu Nov 8 10:42:20 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.magmacom.com (mx1.magmacom.com [206.191.0.217]) by hub.freebsd.org (Postfix) with ESMTP id C285337B418 for ; Thu, 8 Nov 2001 10:42:17 -0800 (PST) Received: from mail6.magma.ca (mail6 [206.191.0.248]) by mx1.magmacom.com (8.9.3/8.9.3) with ESMTP id NAA14074; Thu, 8 Nov 2001 13:42:16 -0500 (EST) Received: from lucan (mothership.macadamian.com [206.191.21.204]) by mail6.magma.ca (8.9.3/8.9.3) with SMTP id NAA00115; Thu, 8 Nov 2001 13:42:16 -0500 (EST) Message-ID: <01b501c16885$bc64db70$2a64a8c0@macadamian.com> From: "Jason Mawdsley" To: "Alfred Perlstein" Cc: References: <016501c16878$4c80d3c0$2a64a8c0@macadamian.com> <20011108122150.W89342@elvis.mu.org> Subject: Re: mmap/madvise Date: Thu, 8 Nov 2001 13:46:53 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 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 > > Hi hackers! > > > > I am looking for a way to reserve memory, without actually allocating the > > swap space. > > > > The FreeBSD man page for mmap doesn't mention MAP_NORESERVE, but it is in > > sys/mman.h. > > > > Is that flag implemented, and external? > > > > Or is their a better way to do this? > > Just proceed normally, freebsd does overcommit such that you really > don't need to do anything special to get the results you desire. I am not sure I understand what you mean by that. I want to be able to reserve a large track of memory, and then commit a page when I need it. Pretty much what VirtualAlloc is doing on Windows. Did you mean doesn't overcommit? TIA Jason Mawdsley ~ jason@macadamian.com m_ a c a d a m i a n t e c h n o l o g i e s "Software developers for the world's leading technology companies." http://www.macadamian.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message