diff options
author | Lee Schermerhorn <lee.schermerhorn@hp.com> | 2009-12-14 20:58:32 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-15 11:53:13 -0500 |
commit | 9b5e5d0fdc91b73bba8cf5e0fbe3521a953e4e4d (patch) | |
tree | 58b7ca4a13b71de2132ae669fc138eb85c5ab3c8 /Documentation/vm/hugetlbpage.txt | |
parent | 267b4c281b4a43c8f3d965c791d3a7fd62448733 (diff) |
hugetlb: use only nodes with memory for huge pages
Register per node hstate sysfs attributes only for nodes with memory.
Global replacement of 'all online nodes" with "all nodes with memory" in
mm/hugetlb.c. Suggested by David Rientjes.
A subsequent patch will handle adding/removing of per node hstate sysfs
attributes when nodes transition to/from memoryless state via memory
hotplug.
NOTE: this patch has not been tested with memoryless nodes.
Signed-off-by: Lee Schermerhorn <lee.schermerhorn@hp.com>
Reviewed-by: Andi Kleen <andi@firstfloor.org>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Nishanth Aravamudan <nacc@us.ibm.com>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Adam Litke <agl@us.ibm.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Eric Whitney <eric.whitney@hp.com>
Cc: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/vm/hugetlbpage.txt')
-rw-r--r-- | Documentation/vm/hugetlbpage.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Documentation/vm/hugetlbpage.txt b/Documentation/vm/hugetlbpage.txt index 01c3108d2e31..6a8e4667ab38 100644 --- a/Documentation/vm/hugetlbpage.txt +++ b/Documentation/vm/hugetlbpage.txt | |||
@@ -90,11 +90,11 @@ huge page pool to 20, allocating or freeing huge pages, as required. | |||
90 | On a NUMA platform, the kernel will attempt to distribute the huge page pool | 90 | On a NUMA platform, the kernel will attempt to distribute the huge page pool |
91 | over all the set of allowed nodes specified by the NUMA memory policy of the | 91 | over all the set of allowed nodes specified by the NUMA memory policy of the |
92 | task that modifies nr_hugepages. The default for the allowed nodes--when the | 92 | task that modifies nr_hugepages. The default for the allowed nodes--when the |
93 | task has default memory policy--is all on-line nodes. Allowed nodes with | 93 | task has default memory policy--is all on-line nodes with memory. Allowed |
94 | insufficient available, contiguous memory for a huge page will be silently | 94 | nodes with insufficient available, contiguous memory for a huge page will be |
95 | skipped when allocating persistent huge pages. See the discussion below of | 95 | silently skipped when allocating persistent huge pages. See the discussion |
96 | the interaction of task memory policy, cpusets and per node attributes with | 96 | below of the interaction of task memory policy, cpusets and per node attributes |
97 | the allocation and freeing of persistent huge pages. | 97 | with the allocation and freeing of persistent huge pages. |
98 | 98 | ||
99 | The success or failure of huge page allocation depends on the amount of | 99 | The success or failure of huge page allocation depends on the amount of |
100 | physically contiguous memory that is present in system at the time of the | 100 | physically contiguous memory that is present in system at the time of the |
@@ -226,7 +226,7 @@ resulting effect on persistent huge page allocation is as follows: | |||
226 | without first moving to a cpuset that contains all of the desired nodes. | 226 | without first moving to a cpuset that contains all of the desired nodes. |
227 | 227 | ||
228 | 5) Boot-time huge page allocation attempts to distribute the requested number | 228 | 5) Boot-time huge page allocation attempts to distribute the requested number |
229 | of huge pages over all on-lines nodes. | 229 | of huge pages over all on-lines nodes with memory. |
230 | 230 | ||
231 | Per Node Hugepages Attributes | 231 | Per Node Hugepages Attributes |
232 | 232 | ||