Date: Sat, 11 May 2002 03:12:07 -0700 From: David Schultz <dschultz@uclink.Berkeley.EDU> To: Fred Clift <fclift@verio.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: pinning a process in real mem (ie unswappable) Message-ID: <20020511031207.A44283@HAL9000.wox.org> In-Reply-To: <20020510101409.V49351-100000@vespa.dmz.orem.verio.net>; from fclift@verio.net on Fri, May 10, 2002 at 10:16:17AM -0600 References: <20020510101409.V49351-100000@vespa.dmz.orem.verio.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Thus spake Fred Clift <fclift@verio.net>: > Is there any easy way to make a long-running process not ever get swapped > out? One that normally wouldn't be that busy, but for latency issues > would be good to never have to wait to have pages mapped back in? You can use mlock(2) to wire the pages into physical memory. But you might also want to consider less drastic measures such as boosting the priority of the process so that it is less likely (but possible) for it to get swapped out. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020511031207.A44283>