Subject: Re: how to prevent a process from being paged?
To: Erik E. Fair <>
From: Jason Thorpe <>
List: tech-kern
Date: 06/01/1999 08:09:28
On Tue, 1 Jun 1999 03:48:18 -0700 
 "Erik E. Fair" <> wrote:

 > Let us suppose that I have a program which requires real-time response from
 > the system, and thus must not be paged (or swapped) out of RAM; how does
 > one tell the NetBSD kernel that?

You could mlock your entire address space...

...but that will only prevent the process's pages from being recycled.  I
don't think there's a way to say "not a candidate for swapping" (i.e.
making the u-area non-resident).

        -- Jason R. Thorpe <>