Re: [PATCH] mem-hotplug: use GFP_HIGHUSER_MOVABLE and alloc from next node in alloc_migrate_target()

2016-07-14 Thread Xishi Qiu
On 2016/7/15 6:17, David Rientjes wrote: > On Thu, 14 Jul 2016, Xishi Qiu wrote: > >> alloc_migrate_target() is called from migrate_pages(), and the page >> is always from user space, so we can add __GFP_HIGHMEM directly. >> >> Second, when we offline a node, the new page should alloced from

Re: [PATCH] mem-hotplug: use GFP_HIGHUSER_MOVABLE and alloc from next node in alloc_migrate_target()

2016-07-14 Thread Xishi Qiu
On 2016/7/15 6:17, David Rientjes wrote: > On Thu, 14 Jul 2016, Xishi Qiu wrote: > >> alloc_migrate_target() is called from migrate_pages(), and the page >> is always from user space, so we can add __GFP_HIGHMEM directly. >> >> Second, when we offline a node, the new page should alloced from

Re: [PATCH] mem-hotplug: use GFP_HIGHUSER_MOVABLE and alloc from next node in alloc_migrate_target()

2016-07-14 Thread David Rientjes
On Thu, 14 Jul 2016, Xishi Qiu wrote: > alloc_migrate_target() is called from migrate_pages(), and the page > is always from user space, so we can add __GFP_HIGHMEM directly. > > Second, when we offline a node, the new page should alloced from other > nodes instead of the current node, because

Re: [PATCH] mem-hotplug: use GFP_HIGHUSER_MOVABLE and alloc from next node in alloc_migrate_target()

2016-07-14 Thread David Rientjes
On Thu, 14 Jul 2016, Xishi Qiu wrote: > alloc_migrate_target() is called from migrate_pages(), and the page > is always from user space, so we can add __GFP_HIGHMEM directly. > > Second, when we offline a node, the new page should alloced from other > nodes instead of the current node, because

[PATCH] mem-hotplug: use GFP_HIGHUSER_MOVABLE and alloc from next node in alloc_migrate_target()

2016-07-13 Thread Xishi Qiu
alloc_migrate_target() is called from migrate_pages(), and the page is always from user space, so we can add __GFP_HIGHMEM directly. Second, when we offline a node, the new page should alloced from other nodes instead of the current node, because re-migrate is a waste of time. Signed-off-by:

[PATCH] mem-hotplug: use GFP_HIGHUSER_MOVABLE and alloc from next node in alloc_migrate_target()

2016-07-13 Thread Xishi Qiu
alloc_migrate_target() is called from migrate_pages(), and the page is always from user space, so we can add __GFP_HIGHMEM directly. Second, when we offline a node, the new page should alloced from other nodes instead of the current node, because re-migrate is a waste of time. Signed-off-by: