From owner-freebsd-hackers Thu Nov 8 10:21:59 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from elvis.mu.org (elvis.mu.org [216.33.66.196]) by hub.freebsd.org (Postfix) with ESMTP id 1745E37B41D for ; Thu, 8 Nov 2001 10:21:56 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id C317B81D01; Thu, 8 Nov 2001 12:21:50 -0600 (CST) Date: Thu, 8 Nov 2001 12:21:50 -0600 From: Alfred Perlstein To: Jason Mawdsley Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: mmap/madvise Message-ID: <20011108122150.W89342@elvis.mu.org> References: <016501c16878$4c80d3c0$2a64a8c0@macadamian.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <016501c16878$4c80d3c0$2a64a8c0@macadamian.com>; from jason@macadamian.com on Thu, Nov 08, 2001 at 12:10:42PM -0500 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 * Jason Mawdsley [011108 11:07] wrote: > 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. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' http://www.morons.org/rants/gpl-harmful.php3 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message