Re: [Part3 PATCH v2 1/4] bootmem, mem-hotplug: Register local pagetable pages with LOCAL_NODE_DATA when freeing bootmem.

2013-06-13 Thread Tang Chen
Hi Michal, Please see below. On 06/13/2013 10:16 PM, Michal Nazarewicz wrote: .. diff --git a/include/linux/memblock.h b/include/linux/memblock.h index a85ced9..8a38eef 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h @@ -131,6 +131,28 @@ void __next_free_mem_range_rev(u

Re: [Part3 PATCH v2 1/4] bootmem, mem-hotplug: Register local pagetable pages with LOCAL_NODE_DATA when freeing bootmem.

2013-06-13 Thread Michal Nazarewicz
On Thu, Jun 13 2013, Tang Chen wrote: > As Yinghai suggested, even if a node is movable node, which has only > ZONE_MOVABLE, pagetables should be put in the local node. > > In memory hot-remove logic, it offlines all pages first, and then > removes pagetables. But the local pagetable pages cannot b

[Part3 PATCH v2 1/4] bootmem, mem-hotplug: Register local pagetable pages with LOCAL_NODE_DATA when freeing bootmem.

2013-06-13 Thread Tang Chen
As Yinghai suggested, even if a node is movable node, which has only ZONE_MOVABLE, pagetables should be put in the local node. In memory hot-remove logic, it offlines all pages first, and then removes pagetables. But the local pagetable pages cannot be offlined because they are used by kernel. So