Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Oct 2001 17:21:53 -0400
From:      Jason Andresen <jandrese@mitre.org>
To:        Dwayne.MacKinnon@xwave.com
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Memory allocation question
Message-ID:  <3BBA2FF1.84FF06AC@mitre.org>
References:  <3BBA29C0.5E125DAF@xwave.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Dwayne wrote:
> 
> Hi,
> 
>      I'm creating an app where I want to use memory to store data so I
> can get at it quickly. The problem is, I can't afford the delays that
> would occur if the memory gets swapped out. Is there any way in FreeBSD
> to allocate memory so that the VM system won't swap it out?

It's not a 100% guarentee IIRC, but I think madvise(2) can tell FreeBSD
to try it's best to not swap out parts of memory.

-- 
  \  |_ _|__ __|_ \ __| Jason Andresen        jandrese@mitre.org
 |\/ |  |    |    / _|  Network and Distributed Systems Engineer
_|  _|___|  _| _|_\___| Office: 703-883-7755


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BBA2FF1.84FF06AC>