2.4 limits locks to half of physical me

This commit is contained in:
Michael Kerrisk 2004-11-25 13:33:38 +00:00
parent bab7e1c781
commit c1832fd1eb
1 changed files with 7 additions and 2 deletions

View File

@ -30,7 +30,9 @@
.\" Modified, 27 May 2004, Michael Kerrisk <mtk-manpages@gmx.net>
.\" Added notes on capability requirements
.\"
.TH MLOCK 2 2004-05-27 "Linux 2.6.6" "Linux Programmer's Manual"
.\" Modified, 2004-11-25, mtk, 2.4 limits locks to half of physical mem.
.\"
.TH MLOCK 2 2004-11-25 "Linux 2.6.9" "Linux Programmer's Manual"
.SH NAME
mlock \- disable paging for some parts of memory
.SH SYNOPSIS
@ -104,6 +106,9 @@ is automatically rounded down to the nearest page boundary.
However, POSIX 1003.1-2001 allows an implementation to require that
.I addr
is page aligned, so portable applications should ensure this.
In Linux 2.4 and earlier, the kernel prevents a single process
from locking more than half of RAM.
.SH "RETURN VALUE"
On success,
.B mlock
@ -130,7 +135,7 @@ Under Linux the
.B CAP_IPC_LOCK
capability is required.
.LP
Linux adds
Linux adds:
.TP
.B EINVAL
.I len