diff options
author | Lee Schermerhorn <lee.schermerhorn@hp.com> | 2009-12-14 20:58:35 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-15 11:53:13 -0500 |
commit | 4faf8d950ec438c49ae4526b897c30f8a2cad741 (patch) | |
tree | 2764787c538868e73958e176d46c542008f345c2 /Documentation/vm | |
parent | 8fe23e057172223fe2048768a4d87ab7de7477bc (diff) |
hugetlb: handle memory hot-plug events
Register per node hstate attributes only for nodes with memory. As
suggested by David Rientjes.
With Memory Hotplug, memory can be added to a memoryless node and a node
with memory can become memoryless. Therefore, add a memory on/off-line
notifier callback to [un]register a node's attributes on transition
to/from memoryless state.
N.B., Only tested build, boot, libhugetlbfs regression.
i.e., no memory hotplug testing.
Signed-off-by: Lee Schermerhorn <lee.schermerhorn@hp.com>
Reviewed-by: Andi Kleen <andi@firstfloor.org>
Acked-by: David Rientjes <rientjes@google.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Lee Schermerhorn <lee.schermerhorn@hp.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Nishanth Aravamudan <nacc@us.ibm.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')
-rw-r--r-- | Documentation/vm/hugetlbpage.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/vm/hugetlbpage.txt b/Documentation/vm/hugetlbpage.txt index 6a8e4667ab38..bc31636973e3 100644 --- a/Documentation/vm/hugetlbpage.txt +++ b/Documentation/vm/hugetlbpage.txt | |||
@@ -231,7 +231,8 @@ resulting effect on persistent huge page allocation is as follows: | |||
231 | Per Node Hugepages Attributes | 231 | Per Node Hugepages Attributes |
232 | 232 | ||
233 | A subset of the contents of the root huge page control directory in sysfs, | 233 | A subset of the contents of the root huge page control directory in sysfs, |
234 | described above, has been replicated under each "node" system device in: | 234 | described above, will be replicated under each the system device of each |
235 | NUMA node with memory in: | ||
235 | 236 | ||
236 | /sys/devices/system/node/node[0-9]*/hugepages/ | 237 | /sys/devices/system/node/node[0-9]*/hugepages/ |
237 | 238 | ||