Lee Schermerhorn

Fix up the error return for nodemask containing nodes disallowed by
the process' current cpuset.  Disallowed nodes are now silently ignored,
as long as the nodemask contains at least one node that is on-line,
allowed by the process' cpuset and has memory.

Now that we have a cpuset man page, we can refer to cpusets directly
in the man page text.
This commit is contained in:
Michael Kerrisk 2008-08-07 12:19:08 +00:00
parent 5dcc3b6601
commit cdba92536d
1 changed files with 10 additions and 7 deletions

View File

@ -22,7 +22,7 @@
.\" 2007-08-27, Lee Schermerhorn <Lee.Schermerhorn@hp.com>
.\" more precise specification of behavior.
.\"
.TH SET_MEMPOLICY 2 2007-08-27 Linux "Linux Programmer's Manual"
.TH SET_MEMPOLICY 2 2008-08-07 Linux "Linux Programmer's Manual"
.SH NAME
set_mempolicy \- set default NUMA memory policy for a process and its children
.SH SYNOPSIS
@ -60,7 +60,7 @@ 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 task
flag and that are only read [loaded] from by the process
and of memory mapped files mapped using the
.BR mmap (2)
call with the
@ -104,6 +104,11 @@ is zero,
the
.I nodemask
argument is ignored.
Where a
.I nodemask
is required, it must contain at least one node that is on-line,
allowed by the process's current cpuset context,
and contains memory.
The
.B MPOL_DEFAULT
@ -209,13 +214,11 @@ specifies more than a page worth of bits.
Or,
.I nodemask
specifies one or more node IDs that are
greater than the maximum supported node ID,
or are not allowed in the calling task's context.
.\" "calling task's context" refers to cpusets.
.\" No man page avail to ref. --Lee Schermerhorn
greater than the maximum supported node ID.
Or, none of the node IDs specified by
.I nodemask
are on-line, or none of the specified nodes contain memory.
are on-line and allowed by the process's current cpuset context,
or none of the specified nodes contain memory.
.TP
.B ENOMEM
Insufficient kernel memory was available.