Re: [PATCH 2/3] x86: add numa_move_cpus_to_node

From: Yinghai Lu
Date: Tue May 12 2009 - 13:18:48 EST


Christoph Lameter wrote:
> On Mon, 11 May 2009, Yinghai Lu wrote:
>
>>> This going to be fun for the allocators that have put their queues on the
>>> respective nodes. How are the various OS structures that were allocated on
>>> the node that is downed / upped relocated?
>> NODE_DATA is new allocated on that node is backed on line for the first time.
>>
>> per_cpu will still stay with old near node. because per_cpu is somehow preallocated for all possible cpu.
>
> Slab allocators and page allocator use neither NODE_DATA nor percpu
>
> It may be best to bring the processors down and up again if the node
> assignment changes. That will cause the allocators to reallocate the per
> cpu resources on the right node.

or let user util do that? aka before hotadd mem to that node, use /sys to bring
the cpu offine and put the cpus online after mem is added ?

YH
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/