.\" Copyright 2003,2004 Andi Kleen, SuSE Labs.
.\" and Copyright 2007 Lee Schermerhorn, Hewlett Packard
.\"
+.\" %%%LICENSE_START(VERBATIM_PROF)
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
.\"
.\" 2006-02-03, mtk, substantial wording changes and other improvements
.\" 2007-08-27, Lee Schermerhorn <Lee.Schermerhorn@hp.com>
controlled by a more specific policy set by
.BR mbind (2).
The process default policy also controls allocation of any pages for
-memory mapped files mapped using the
+memory-mapped files mapped using the
.BR mmap (2)
call with the
.B MAP_PRIVATE
flag and that are only read [loaded] from by the process
-and of memory mapped files mapped using the
+and of memory-mapped files mapped using the
.BR mmap (2)
call with the
.B MAP_SHARED
flag, regardless of the access type.
-The policy is only applied when a new page is allocated
+The policy is applied only when a new page is allocated
for the process.
For anonymous memory this is when the page is first
touched by the application.
argument must specify one of
.BR MPOL_DEFAULT ,
.BR MPOL_BIND ,
-.B MPOL_INTERLEAVE
+.BR MPOL_INTERLEAVE ,
or
.BR MPOL_PREFERRED .
All modes except
A nonempty
.I nodemask
specifies node ids that are relative to the set of
-node ids allowed by the process's current cpuset.
+node ids allowed by the process's current cpuset.
.PP
.I nodemask
points to a bit mask of node IDs that contains up to
bits.
The bit mask size is rounded to the next multiple of
.IR "sizeof(unsigned long)" ,
-but the kernel will only use bits up to
+but the kernel will use bits only up to
.IR maxnode .
A NULL value of
.I nodemask
.IR "local allocation" .
This effectively overrides the specified policy until the process's
cpuset context includes one or more of the nodes specified by
-.IR nodemask.
+.IR nodemask .
The
.B MPOL_DEFAULT
mode specifies that any nondefault process memory policy be removed,
so that the memory policy "falls back" to the system default policy.
-The system default policy is "local allocation"--
-i.e., allocate memory on the node of the CPU that triggered the allocation.
+The system default policy is "local allocation"\(emthat is,
+allocate memory on the node of the CPU that triggered the allocation.
.I nodemask
must be specified as NULL.
If the "local node" contains no free memory, the system will
.BR cpuset (7),
.BR numa (7),
.BR numactl (8)
+.SH COLOPHON
+This page is part of release 3.65 of the Linux
+.I man-pages
+project.
+A description of the project,
+and information about reporting bugs,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.