On Fri, May 21, 2010 at 03:03:40PM +0530, Ankita Garg wrote:
Ankita,
it is the expected result, NUMA_EMU and NUMA_HOTPLUG_EMU are 2 different
features, there is no dependency between the 2 features. Even if you disable
NUMA_EMU, the hotplug emualation still working, this implementatin reduces the
dependency, it make things simple and easy to understand.
You concern makes sense in semantices, but we do not pefer to combine 2
independent modules together.
it is the same result with the real implemetation for memory hotplug in linux
kernel, when we hot-add physical memory into machine, the linux kernel create
the memory entires and create the related data structure, but the OS will never
online the memory, it should finish in user space.
the node hotplug emulation and memory hotplug emualtioni feature follows up the
same rules with the kernel.
As we know, when we allocate memory from a memory-less node, it will cause a
OOM issue, Some engineer is already focus on this bug. Because of the OOM issue
can be reproduced with the hotplug emulator, it helps the engineer so much.
This feature is flexible. As I know, Some OSV already online the hotplug memory
automatically, if the mainline kernel decide do the same thing, we will change
the related code, too.
--
Thanks & Regards,
Shaohui
--