lkml.org 
[lkml]   [2002]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Process-wise swap-on/off option
On Mon, 15 Jul 2002, Weber, Frank wrote:

> Hello:
>
> Is it possible to arrange that a Linux application
> (or one of its threads) has the ability to
>
> "... lock (a certain) stack and data segment ...
> into memory so that it can't be swapped out"?
>
> [This has been formulated as a requirement by one of
> our analysts.]
>
> I have been told that this is unlikely (except by
> disabling swapout altogether (for all processes).
>
> Any hints as to where to look for a solution (i.e.,
> pointers to documentation or manuals where the ifs
> and hows are explained) would be greatly appreciated.
>
> Many thanks in advance,
> F.P.Weber

Sure. mlock() and mlockall().

Cheers,
Dick Johnson

Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).

Windows-2000/Professional isn't.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:27    [W:0.087 / U:1.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site