From owner-freebsd-questions Sat May 11 3:11:34 2002 Delivered-To: freebsd-questions@freebsd.org Received: from HAL9000.wox.org (12-232-222-90.client.attbi.com [12.232.222.90]) by hub.freebsd.org (Postfix) with ESMTP id 318B737B40C for ; Sat, 11 May 2002 03:11:29 -0700 (PDT) Received: (from das@localhost) by HAL9000.wox.org (8.11.6/8.11.6) id g4BAC7q44352; Sat, 11 May 2002 03:12:07 -0700 (PDT) (envelope-from das) Date: Sat, 11 May 2002 03:12:07 -0700 From: David Schultz To: Fred Clift Cc: freebsd-questions@FreeBSD.ORG Subject: Re: pinning a process in real mem (ie unswappable) Message-ID: <20020511031207.A44283@HAL9000.wox.org> Mail-Followup-To: Fred Clift , freebsd-questions@FreeBSD.ORG References: <20020510101409.V49351-100000@vespa.dmz.orem.verio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Fred Clift : > 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