login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
11
Re: [patch 4/4] mempolicy: update NUMA memory policy documentation
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Randy Dunlap
Subject:
Re: [patch 4/4] mempolicy: update NUMA memory policy documentation
Date: Monday, February 11, 2008 - 9:10 am
On Mon, 11 Feb 2008 07:30:35 -0800 (PST) David Rientjes wrote:
quoted text
> Updates Documentation/vm/numa_memory_policy.txt and > Documentation/filesystems/tmpfs.txt to describe optional mempolicy mode > flags. > > Cc: Paul Jackson <pj@sgi.com> > Cc: Christoph Lameter <clameter@sgi.com> > Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com> > Cc: Andi Kleen <ak@suse.de> > Signed-off-by: David Rientjes <rientjes@google.com> > --- > Documentation/filesystems/tmpfs.txt | 11 ++++++++ > Documentation/vm/numa_memory_policy.txt | 41 +++++++++++++++++++++++++++---- > 2 files changed, 47 insertions(+), 5 deletions(-) >
quoted text
> diff --git a/Documentation/vm/numa_memory_policy.txt b/Documentation/vm/numa_memory_policy.txt > --- a/Documentation/vm/numa_memory_policy.txt > +++ b/Documentation/vm/numa_memory_policy.txt > @@ -135,9 +135,11 @@ most general to most specific: > > Components of Memory Policies > > - A Linux memory policy is a tuple consisting of a "mode" and an optional set > - of nodes. The mode determine the behavior of the policy, while the > - optional set of nodes can be viewed as the arguments to the behavior. > + A Linux memory policy consists of a "mode", optional mode flags, and an > + optional set of nodes. The mode determine the behavior of the policy,
determines
quoted text
> + the optional mode flags determine the behavior of the mode, and the > + optional set of nodes can be viewed as the arguments to the policy > + behavior. > > Internally, memory policies are implemented by a reference counted > structure, struct mempolicy. Details of this structure will be discussed > @@ -145,7 +147,12 @@ Components of Memory Policies > > Note: in some functions AND in the struct mempolicy itself, the mode > is called "policy". However, to avoid confusion with the policy tuple, > - this document will continue to use the term "mode". > + this document will continue to use the term "mode". Since the mode and > + optional mode flags are stored in the same struct mempolicy member > + (specifically, pol->policy), you must use mpol_mode(pol->policy) to > + access only the mode and mpol_flags(pol->policy) to access only the > + flags. Any function with a formal of type enum mempolicy_mode only > + refers to the mode. > > Linux memory policy supports the following 4 behavioral modes: > > @@ -231,6 +238,28 @@ Components of Memory Policies > the temporary interleaved system default policy works in this > mode. > > + Linux memory policy supports the following optional mode flag: > + > + MPOL_F_STATIC_NODES: This flag specifies that the nodemask passed by > + the user should not be remapped if the task or VMA's set of accessible > + nodes changes after the memory policy has been defined. > + > + Without this flag, anytime a mempolicy is rebound because of a > + change in the set of accessible nodes, the node (Preferred) or > + nodemask (Bind, Interleave) is remapped to the new set of > + accessible nodes. This may result in nodes being used that were > + previously undesired. With this flag, the policy is either > + effected over the user's specified nodemask or the Default > + behavior is used. > + > + For example, consider a task that is attached to a cpuset with > + mems 1-3 that sets an Interleave policy over the same set. If > + the cpuset's mems change to 3-5, the Interleave will now occur > + over nodes 3, 4, and 5. With this flag, however, since only > + node 3 is accessible from the user's nodemask, the "interleave" > + only occurs over that node. If no nodes from the user's > + nodemask are now accessible, the Default behavior is used. > + > MEMORY POLICY APIs > > Linux supports 3 system calls for controlling memory policy. These APIS > @@ -251,7 +280,9 @@ Set [Task] Memory Policy: > Set's the calling task's "task/process memory policy" to mode > specified by the 'mode' argument and the set of nodes defined > by 'nmask'. 'nmask' points to a bit mask of node ids containing > - at least 'maxnode' ids. > + at least 'maxnode' ids. Optional mode flags may be passed by > + intersecting the 'mode' argument with the flag (for example:
or combining ? I'm used to intersection being more of an and-op instead of an or-op, but maybe I'm missing something.
quoted text
> + MPOL_INTERLEAVE | MPOL_F_STATIC_NODES). > > See the set_mempolicy(2) man page for more details
--- ~Randy --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[patch 1/4] mempolicy: convert MPOL constants to enum
, David Rientjes
, (Mon Feb 11, 8:30 am)
[patch 2/4] mempolicy: support optional mode flags
, David Rientjes
, (Mon Feb 11, 8:30 am)
[patch 4/4] mempolicy: update NUMA memory policy documentation
, David Rientjes
, (Mon Feb 11, 8:30 am)
[patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, David Rientjes
, (Mon Feb 11, 8:30 am)
Re: [patch 4/4] mempolicy: update NUMA memory policy docum ...
, Randy Dunlap
, (Mon Feb 11, 9:10 am)
Re: [patch 2/4] mempolicy: support optional mode flags
, Lee Schermerhorn
, (Mon Feb 11, 9:36 am)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, KOSAKI Motohiro
, (Mon Feb 11, 11:25 am)
Re: [patch 1/4] mempolicy: convert MPOL constants to enum
, Andi Kleen
, (Mon Feb 11, 11:45 am)
Re: [patch 1/4] mempolicy: convert MPOL constants to enum
, David Rientjes
, (Mon Feb 11, 12:25 pm)
Re: [patch 1/4] mempolicy: convert MPOL constants to enum
, Christoph Lameter
, (Mon Feb 11, 12:32 pm)
Re: [patch 2/4] mempolicy: support optional mode flags
, David Rientjes
, (Mon Feb 11, 12:34 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, Christoph Lameter
, (Mon Feb 11, 12:34 pm)
Re: [patch 1/4] mempolicy: convert MPOL constants to enum
, David Rientjes
, (Mon Feb 11, 12:40 pm)
Re: [patch 1/4] mempolicy: convert MPOL constants to enum
, Christoph Lameter
, (Mon Feb 11, 12:48 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, David Rientjes
, (Mon Feb 11, 12:56 pm)
Re: [patch 1/4] mempolicy: convert MPOL constants to enum
, David Rientjes
, (Mon Feb 11, 1:02 pm)
[patch 4/4 v2] mempolicy: update NUMA memory policy docume ...
, David Rientjes
, (Mon Feb 11, 1:06 pm)
Re: [patch 4/4 v2] mempolicy: update NUMA memory policy do ...
, Randy Dunlap
, (Mon Feb 11, 1:14 pm)
Re: [patch 1/4] mempolicy: convert MPOL constants to enum
, Christoph Lameter
, (Mon Feb 11, 1:45 pm)
Re: [patch 2/4] mempolicy: support optional mode flags
, Paul Jackson
, (Mon Feb 11, 1:55 pm)
Re: [patch 2/4] mempolicy: support optional mode flags
, David Rientjes
, (Mon Feb 11, 2:52 pm)
Re: [patch 2/4] mempolicy: support optional mode flags
, Paul Jackson
, (Mon Feb 11, 2:57 pm)
Re: [patch 2/4] mempolicy: support optional mode flags
, Lee Schermerhorn
, (Tue Feb 12, 8:31 am)
Re: [patch 2/4] mempolicy: support optional mode flags
, David Rientjes
, (Tue Feb 12, 12:14 pm)
Re: [patch 1/4] mempolicy: convert MPOL constants to enum
, Lee Schermerhorn
, (Tue Feb 12, 5:10 pm)
Re: [patch 2/4] mempolicy: support optional mode flags
, Lee Schermerhorn
, (Tue Feb 12, 5:14 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, Lee Schermerhorn
, (Tue Feb 12, 5:22 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, Lee Schermerhorn
, (Tue Feb 12, 5:25 pm)
Re: [patch 2/4] mempolicy: support optional mode flags
, David Rientjes
, (Tue Feb 12, 5:25 pm)
Re: [patch 1/4] mempolicy: convert MPOL constants to enum
, Paul Jackson
, (Tue Feb 12, 5:31 pm)
Re: [patch 1/4] mempolicy: convert MPOL constants to enum
, David Rientjes
, (Tue Feb 12, 5:53 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, David Rientjes
, (Tue Feb 12, 5:57 pm)
Re: [patch 1/4] mempolicy: convert MPOL constants to enum
, Christoph Lameter
, (Tue Feb 12, 6:04 pm)
Re: [patch 1/4] mempolicy: convert MPOL constants to enum
, Paul Jackson
, (Tue Feb 12, 6:28 pm)
Re: [patch 1/4] mempolicy: convert MPOL constants to enum
, Paul Jackson
, (Tue Feb 12, 6:32 pm)
Re: [patch 1/4] mempolicy: convert MPOL constants to enum
, David Rientjes
, (Tue Feb 12, 7:00 pm)
Re: [patch 1/4] mempolicy: convert MPOL constants to enum
, Paul Jackson
, (Tue Feb 12, 7:22 pm)
Re: [patch 1/4] mempolicy: convert MPOL constants to enum
, David Rientjes
, (Tue Feb 12, 7:42 pm)
Re: [patch 1/4] mempolicy: convert MPOL constants to enum
, Paul Jackson
, (Tue Feb 12, 7:59 pm)
Re: [patch 1/4] mempolicy: convert MPOL constants to enum
, David Rientjes
, (Tue Feb 12, 8:17 pm)
Re: [patch 1/4] mempolicy: convert MPOL constants to enum
, Paul Jackson
, (Tue Feb 12, 8:22 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, Paul Jackson
, (Tue Feb 12, 8:52 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, David Rientjes
, (Tue Feb 12, 9:03 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, Paul Jackson
, (Tue Feb 12, 9:13 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, David Rientjes
, (Tue Feb 12, 9:18 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, David Rientjes
, (Tue Feb 12, 9:23 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, David Rientjes
, (Tue Feb 12, 10:06 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, Paul Jackson
, (Wed Feb 13, 1:03 am)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, David Rientjes
, (Wed Feb 13, 2:36 am)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, Lee Schermerhorn
, (Wed Feb 13, 8:15 am)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, Lee Schermerhorn
, (Wed Feb 13, 9:01 am)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, Lee Schermerhorn
, (Wed Feb 13, 9:14 am)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, Paul Jackson
, (Wed Feb 13, 10:04 am)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, David Rientjes
, (Wed Feb 13, 11:48 am)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, Paul Jackson
, (Wed Feb 13, 11:58 am)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, David Rientjes
, (Wed Feb 13, 12:02 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, Lee Schermerhorn
, (Wed Feb 13, 12:05 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, David Rientjes
, (Wed Feb 13, 12:12 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, David Rientjes
, (Wed Feb 13, 12:17 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, Paul Jackson
, (Wed Feb 13, 1:29 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, David Rientjes
, (Wed Feb 13, 2:35 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, Paul Jackson
, (Thu Feb 14, 3:09 am)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, Paul Jackson
, (Thu Feb 14, 3:26 am)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, Paul Jackson
, (Thu Feb 14, 4:12 am)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, Paul Jackson
, (Thu Feb 14, 5:27 am)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, David Rientjes
, (Thu Feb 14, 12:40 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, David Rientjes
, (Thu Feb 14, 12:45 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, David Rientjes
, (Thu Feb 14, 2:38 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, David Rientjes
, (Thu Feb 14, 6:44 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, Paul Jackson
, (Fri Feb 15, 2:27 am)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, Paul Jackson
, (Fri Feb 15, 3:00 am)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, Paul Jackson
, (Fri Feb 15, 3:19 am)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, David Rientjes
, (Fri Feb 15, 1:14 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, David Rientjes
, (Fri Feb 15, 1:23 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, David Rientjes
, (Fri Feb 15, 1:32 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, Paul Jackson
, (Fri Feb 15, 4:45 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, David Rientjes
, (Fri Feb 15, 4:55 pm)
Re: [patch 3/4] mempolicy: add MPOL_F_STATIC_NODES flag
, Paul Jackson
, (Fri Feb 15, 5:11 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v2 11/11] sched: update tg->shares after cpu.shares write
Ingo Molnar
Re: [RFC] Cpu-hotplug: Using the Process Freezer (try2)
Michal Nazarewicz
Re: [PATCH] USB: Gadget: g_multi: added INF file for gadget with multiple configur...
Eric W. Biederman
Re: init's children list is long and slows reaping children.
Jeffrey V. Merkey
Re: Versioning file system
git
:
Matthieu Moy
Re: Bugs in Gitosis
Daniel Barkalow
Re: About git and the use of SHA-1
David Lang
Re: mingw, windows, crlf/lf, and git
Shawn O. Pearce
Re: Bugs in Gitosis
Junio C Hamano
Re: [PATCH 14/21] Convert ce_path_match() to use struct pathspec
linux-netdev
:
David Miller
Re: [2.6.30-rc3] powerpc: compilation error of mace module
David Miller
Re: [PATCH] ipv6: fix display of local and remote sit endpoints
Cong Wang
Re: [PATCH] s2io: add dynamic LRO disable support
Tobacco New Year Promo
Eric Dumazet
Re: [PATCH] net: implement emergency route cache rebulds when gc_elasticity is exc...
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB: tm6000: add special usb request to quit i2c tuner transfer
Linux Kernel Mailing List
of/flattree: merge early_init_dt_scan_memory() common code
Linux Kernel Mailing List
b43: N-PHY: add some registers and structs definitions
Linux Kernel Mailing List
powerpc: Move /proc/ppc64 to /proc/powerpc and add symlink
Linux Kernel Mailing List
drivers/acpi: use kasprintf
openbsd-misc
:
Ted Bullock
Re: Proliant DL380 G3 cannot get on network
Eric Furman
Re: Defending OpenBSD Performance
Damien Miller
Re: Patching a SSH 'Weakness'
Tony Abernethy
Re: The Atheros story in much fewer words
Nick Holland
Re: 1 out of 3 hunks failed--saving rejects to kerberosV/src/lib/krb5/crypto.c.rej
Colocation donated by:
Syndicate