]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Fake NUMA emulation for PowerPC
authorBalbir Singh <balbir@linux.vnet.ibm.com>
Fri, 1 Feb 2008 04:57:31 +0000 (15:57 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 7 Feb 2008 00:40:19 +0000 (11:40 +1100)
commit4c5fb9b24a203ecd32ea0ac216f79c2b17dbeadc
treeb53407c6dd9b3b310bdc203681ba528460612e0d
parent8a56cb784298370a43dcc5ecba0179d42b756d4b
[POWERPC] Fake NUMA emulation for PowerPC

Here's a dumb simple implementation of fake NUMA nodes for PowerPC.
Fake NUMA nodes can be specified using the following command line
option

numa=fake=<node range>

node range is of the format <range1>,<range2>,...<rangeN>

Each of the rangeX parameters is passed using memparse().  I find the
patch useful for fake NUMA emulation on my simple PowerPC machine.
I've tested it on a numa box with the following arguments

numa=fake=512M
numa=fake=512M,768M
numa=fake=256M,512M mem=512M
numa=fake=1G mem=768M
numa=fake=
without any numa= argument

The other side-effect introduced by this patch is that; in the case
where we don't have NUMA information, we now set a node online after
adding each LMB.  This node could very well be node 0, but in the case
that we enable fake NUMA nodes, when we cross node boundaries, we need
to set the new node online.

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/numa.c