Re: [PATCH v2] mem-hotplug: alloc new page from the next node if zone is MOVABLE_ZONE

2016-07-25 Thread Xishi Qiu
On 2016/7/25 15:52, Vlastimil Babka wrote: > On 07/25/2016 09:42 AM, Xishi Qiu wrote: >> On 2016/7/25 14:59, Vlastimil Babka wrote: >> >>> On 07/22/2016 04:57 AM, Xishi Qiu wrote: Memory offline could happen on both movable zone and non-movable zone. We can offline the whole node if the

Re: [PATCH v2] mem-hotplug: alloc new page from the next node if zone is MOVABLE_ZONE

2016-07-25 Thread Xishi Qiu
On 2016/7/25 15:52, Vlastimil Babka wrote: > On 07/25/2016 09:42 AM, Xishi Qiu wrote: >> On 2016/7/25 14:59, Vlastimil Babka wrote: >> >>> On 07/22/2016 04:57 AM, Xishi Qiu wrote: Memory offline could happen on both movable zone and non-movable zone. We can offline the whole node if the

Re: [PATCH v2] mem-hotplug: alloc new page from the next node if zone is MOVABLE_ZONE

2016-07-25 Thread Xishi Qiu
On 2016/7/25 14:59, Vlastimil Babka wrote: > On 07/22/2016 04:57 AM, Xishi Qiu wrote: >> Memory offline could happen on both movable zone and non-movable zone. >> We can offline the whole node if the zone is movable zone, and if the >> zone is non-movable zone, we cannot offline the whole node,

Re: [PATCH v2] mem-hotplug: alloc new page from the next node if zone is MOVABLE_ZONE

2016-07-25 Thread Xishi Qiu
On 2016/7/25 14:59, Vlastimil Babka wrote: > On 07/22/2016 04:57 AM, Xishi Qiu wrote: >> Memory offline could happen on both movable zone and non-movable zone. >> We can offline the whole node if the zone is movable zone, and if the >> zone is non-movable zone, we cannot offline the whole node,

Re: [PATCH v2] mem-hotplug: alloc new page from the next node if zone is MOVABLE_ZONE

2016-07-25 Thread Vlastimil Babka
On 07/25/2016 09:42 AM, Xishi Qiu wrote: On 2016/7/25 14:59, Vlastimil Babka wrote: On 07/22/2016 04:57 AM, Xishi Qiu wrote: Memory offline could happen on both movable zone and non-movable zone. We can offline the whole node if the zone is movable zone, and if the zone is non-movable zone,

Re: [PATCH v2] mem-hotplug: alloc new page from the next node if zone is MOVABLE_ZONE

2016-07-25 Thread Vlastimil Babka
On 07/25/2016 09:42 AM, Xishi Qiu wrote: On 2016/7/25 14:59, Vlastimil Babka wrote: On 07/22/2016 04:57 AM, Xishi Qiu wrote: Memory offline could happen on both movable zone and non-movable zone. We can offline the whole node if the zone is movable zone, and if the zone is non-movable zone,

Re: [PATCH v2] mem-hotplug: alloc new page from the next node if zone is MOVABLE_ZONE

2016-07-25 Thread Vlastimil Babka
On 07/22/2016 04:57 AM, Xishi Qiu wrote: Memory offline could happen on both movable zone and non-movable zone. We can offline the whole node if the zone is movable zone, and if the zone is non-movable zone, we cannot offline the whole node, because some kernel memory can't be migrated. So if

Re: [PATCH v2] mem-hotplug: alloc new page from the next node if zone is MOVABLE_ZONE

2016-07-25 Thread Vlastimil Babka
On 07/22/2016 04:57 AM, Xishi Qiu wrote: Memory offline could happen on both movable zone and non-movable zone. We can offline the whole node if the zone is movable zone, and if the zone is non-movable zone, we cannot offline the whole node, because some kernel memory can't be migrated. So if

Re: [PATCH v2] mem-hotplug: alloc new page from the next node if zone is MOVABLE_ZONE

2016-07-24 Thread Xishi Qiu
On 2016/7/23 4:11, Andrew Morton wrote: > On Fri, 22 Jul 2016 10:57:48 +0800 Xishi Qiu wrote: > >> Memory offline could happen on both movable zone and non-movable zone. >> We can offline the whole node if the zone is movable zone, and if the >> zone is non-movable zone, we

Re: [PATCH v2] mem-hotplug: alloc new page from the next node if zone is MOVABLE_ZONE

2016-07-24 Thread Xishi Qiu
On 2016/7/23 4:11, Andrew Morton wrote: > On Fri, 22 Jul 2016 10:57:48 +0800 Xishi Qiu wrote: > >> Memory offline could happen on both movable zone and non-movable zone. >> We can offline the whole node if the zone is movable zone, and if the >> zone is non-movable zone, we cannot offline the

Re: [PATCH v2] mem-hotplug: alloc new page from the next node if zone is MOVABLE_ZONE

2016-07-22 Thread Andrew Morton
On Fri, 22 Jul 2016 10:57:48 +0800 Xishi Qiu wrote: > Memory offline could happen on both movable zone and non-movable zone. > We can offline the whole node if the zone is movable zone, and if the > zone is non-movable zone, we cannot offline the whole node, because > some

Re: [PATCH v2] mem-hotplug: alloc new page from the next node if zone is MOVABLE_ZONE

2016-07-22 Thread Andrew Morton
On Fri, 22 Jul 2016 10:57:48 +0800 Xishi Qiu wrote: > Memory offline could happen on both movable zone and non-movable zone. > We can offline the whole node if the zone is movable zone, and if the > zone is non-movable zone, we cannot offline the whole node, because > some kernel memory can't be

[PATCH v2] mem-hotplug: alloc new page from the next node if zone is MOVABLE_ZONE

2016-07-21 Thread Xishi Qiu
Memory offline could happen on both movable zone and non-movable zone. We can offline the whole node if the zone is movable zone, and if the zone is non-movable zone, we cannot offline the whole node, because some kernel memory can't be migrated. So if we offline a node with movable zone, use

[PATCH v2] mem-hotplug: alloc new page from the next node if zone is MOVABLE_ZONE

2016-07-21 Thread Xishi Qiu
Memory offline could happen on both movable zone and non-movable zone. We can offline the whole node if the zone is movable zone, and if the zone is non-movable zone, we cannot offline the whole node, because some kernel memory can't be migrated. So if we offline a node with movable zone, use