Re: [PATCH V8] mm: memory hot-add: hot-added memory can not be added to movable zone by default

2015-11-04 Thread Changsheng Liu
在 2015/11/5 0:31, Dave Hansen 写道: On 11/04/2015 12:23 AM, liuchangsheng wrote: After the user config CONFIG_MOVABLE_NODE, When the memory is hot added, should_add_memory_movable() return 0 because all zones including ZONE_MOVABLE are empty, so the memory that was hot added will be assigned to

Re: [PATCH V8] mm: memory hot-add: hot-added memory can not be added to movable zone by default

2015-11-04 Thread Changsheng Liu
在 2015/11/5 0:31, Dave Hansen 写道: On 11/04/2015 12:23 AM, liuchangsheng wrote: After the user config CONFIG_MOVABLE_NODE, When the memory is hot added, should_add_memory_movable() return 0 because all zones including ZONE_MOVABLE are empty, so the memory that was hot added will be assigned to

Re: [PATCH V5] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-11-03 Thread Changsheng Liu
the patch. Please see below. Thanks,I will update the patch and repost it On Tue, 15 Sep 2015 03:49:58 -0400 Changsheng Liu wrote: From: Changsheng Liu After the user config CONFIG_MOVABLE_NODE and movable_node kernel option, When the memory is hot added, should_add_memory_movable() return 0

Re: [PATCH V5] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-11-03 Thread Changsheng Liu
the patch. Please see below. Thanks,I will update the patch and repost it On Tue, 15 Sep 2015 03:49:58 -0400 Changsheng Liu <liuchangsh...@inspur.com> wrote: From: Changsheng Liu <liuchangch...@inspur.com> After the user config CONFIG_MOVABLE_NODE and movable_node kernel option, Whe

Re: [PATCH V7] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-10-20 Thread Changsheng Liu
在 2015/10/15 0:18, Vlastimil Babka 写道: On 10/12/2015 08:58 AM, Changsheng Liu wrote: From: Changsheng Liu After the user config CONFIG_MOVABLE_NODE, When the memory is hot added, should_add_memory_movable() return 0 because all zones including ZONE_MOVABLE are empty, so the memory

Re: [PATCH V7] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-10-20 Thread Changsheng Liu
在 2015/10/15 0:18, Vlastimil Babka 写道: On 10/12/2015 08:58 AM, Changsheng Liu wrote: From: Changsheng Liu <liuchangch...@inspur.com> After the user config CONFIG_MOVABLE_NODE, When the memory is hot added, should_add_memory_movable() return 0 because all zones including ZONE_M

[PATCH V7] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-10-12 Thread Changsheng Liu
From: Changsheng Liu After the user config CONFIG_MOVABLE_NODE, When the memory is hot added, should_add_memory_movable() return 0 because all zones including ZONE_MOVABLE are empty, so the memory that was hot added will be assigned to ZONE_NORMAL and ZONE_NORMAL will be created firstly. But we

Re: [PATCH V6] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-10-12 Thread Changsheng Liu
And BTW, please don't cc the following reviewers. Their email addresses have changed. Cc: Zhang Yanfei Cc: Hu Tao Cc: Lai Jiangshan Cc: Gu Zheng Thanks. :) On 10/09/2015 03:12 PM, Changsheng Liu wrote: From: Changsheng Liu After the user config CONFIG_MOVABLE_NODE, When the memory is hot add

Re: [PATCH V6] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-10-12 Thread Changsheng Liu
ould clarify it is useful. :) And BTW, please don't cc the following reviewers. Their email addresses have changed. Cc: Zhang Yanfei<zhangyan...@cn.fujitsu.com> Cc: Hu Tao<hu...@cn.fujitsu.com> Cc: Lai Jiangshan<la...@cn.fujitsu.com> Cc: Gu Zheng<guz.f...@cn.fujitsu.com

[PATCH V7] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-10-12 Thread Changsheng Liu
From: Changsheng Liu <liuchangch...@inspur.com> After the user config CONFIG_MOVABLE_NODE, When the memory is hot added, should_add_memory_movable() return 0 because all zones including ZONE_MOVABLE are empty, so the memory that was hot added will be assigned to ZONE_NORMAL and ZONE_

[PATCH V6] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-10-09 Thread Changsheng Liu
From: Changsheng Liu After the user config CONFIG_MOVABLE_NODE, When the memory is hot added, should_add_memory_movable() return 0 because all zones including movable zone are empty, so the memory that was hot added will be added to the normal zone and the normal zone will be created firstly

[PATCH V6] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-10-09 Thread Changsheng Liu
From: Changsheng Liu <liuchangch...@inspur.com> After the user config CONFIG_MOVABLE_NODE, When the memory is hot added, should_add_memory_movable() return 0 because all zones including movable zone are empty, so the memory that was hot added will be added to the normal zone and the norma

[PATCH V5] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-09-15 Thread Changsheng Liu
From: Changsheng Liu After the user config CONFIG_MOVABLE_NODE and movable_node kernel option, When the memory is hot added, should_add_memory_movable() return 0 because all zones including movable zone are empty, so the memory that was hot added will be added to the normal zone and the normal

[PATCH V5] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-09-15 Thread Changsheng Liu
From: Changsheng Liu <liuchangch...@inspur.com> After the user config CONFIG_MOVABLE_NODE and movable_node kernel option, When the memory is hot added, should_add_memory_movable() return 0 because all zones including movable zone are empty, so the memory that was hot added will be

Re: [PATCH V4] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-09-06 Thread Changsheng Liu
On 9/1/2015 23:37, Yasuaki Ishimatsu wrote: On Mon, 31 Aug 2015 01:58:40 -0400 Changsheng Liu wrote: From: Changsheng Liu After the user config CONFIG_MOVABLE_NODE and movable_node kernel option, When the memory is hot added, should_add_memory_movable() return 0 because all zones

Re: [PATCH V4] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-09-06 Thread Changsheng Liu
On 9/1/2015 23:37, Yasuaki Ishimatsu wrote: On Mon, 31 Aug 2015 01:58:40 -0400 Changsheng Liu <liuchangsh...@inspur.com> wrote: From: Changsheng Liu <liuchangch...@inspur.com> After the user config CONFIG_MOVABLE_NODE and movable_node kernel option, When the memory

Re: [PATCH V4] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-09-02 Thread Changsheng Liu
On 9/1/2015 23:37, Yasuaki Ishimatsu wrote: On Mon, 31 Aug 2015 01:58:40 -0400 Changsheng Liu wrote: From: Changsheng Liu After the user config CONFIG_MOVABLE_NODE and movable_node kernel option, When the memory is hot added, should_add_memory_movable() return 0 because all zones

Re: [PATCH V4] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-09-02 Thread Changsheng Liu
On 9/1/2015 23:37, Yasuaki Ishimatsu wrote: On Mon, 31 Aug 2015 01:58:40 -0400 Changsheng Liu <liuchangsh...@inspur.com> wrote: From: Changsheng Liu <liuchangch...@inspur.com> After the user config CONFIG_MOVABLE_NODE and movable_node kernel option, When the memory

Re: [PATCH V4] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-09-01 Thread Changsheng Liu
On 8/31/2015 21:08, Vlastimil Babka wrote: On 08/31/2015 07:58 AM, Changsheng Liu wrote: From: Changsheng Liu After the user config CONFIG_MOVABLE_NODE and movable_node kernel option, When the memory is hot added, should_add_memory_movable() return 0 because all zones including movable

Re: [PATCH V4] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-09-01 Thread Changsheng Liu
On 8/31/2015 21:08, Vlastimil Babka wrote: On 08/31/2015 07:58 AM, Changsheng Liu wrote: From: Changsheng Liu <liuchangch...@inspur.com> After the user config CONFIG_MOVABLE_NODE and movable_node kernel option, When the memory is hot added, should_add_memory_movable() return 0 becau

[PATCH V4] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-08-30 Thread Changsheng Liu
From: Changsheng Liu After the user config CONFIG_MOVABLE_NODE and movable_node kernel option, When the memory is hot added, should_add_memory_movable() return 0 because all zones including movable zone are empty, so the memory that was hot added will be added to the normal zone and the normal

[PATCH V4] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-08-30 Thread Changsheng Liu
From: Changsheng Liu <liuchangch...@inspur.com> After the user config CONFIG_MOVABLE_NODE and movable_node kernel option, When the memory is hot added, should_add_memory_movable() return 0 because all zones including movable zone are empty, so the memory that was hot added will be

Re: [PATCH V3] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-08-27 Thread Changsheng Liu
在 2015/8/27 17:29, Vlastimil Babka 写道: On 08/27/2015 10:54 AM, Changsheng Liu wrote: From: Changsheng Liu After the user config CONFIG_MOVABLE_NODE and movable_node kernel option, When the memory is hot added, should_add_memory_movable() return 0 because all zones including movable zone

[PATCH V3] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-08-27 Thread Changsheng Liu
From: Changsheng Liu After the user config CONFIG_MOVABLE_NODE and movable_node kernel option, When the memory is hot added, should_add_memory_movable() return 0 because all zones including movable zone are empty, so the memory that was hot added will be added to the normal zone and the normal

Re: [PATCH V3] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-08-27 Thread Changsheng Liu
在 2015/8/27 17:29, Vlastimil Babka 写道: On 08/27/2015 10:54 AM, Changsheng Liu wrote: From: Changsheng Liu liuchangch...@inspur.com After the user config CONFIG_MOVABLE_NODE and movable_node kernel option, When the memory is hot added, should_add_memory_movable() return 0 because all zones

[PATCH V3] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-08-27 Thread Changsheng Liu
From: Changsheng Liu liuchangch...@inspur.com After the user config CONFIG_MOVABLE_NODE and movable_node kernel option, When the memory is hot added, should_add_memory_movable() return 0 because all zones including movable zone are empty, so the memory that was hot added will be added

Re: [PATCH] Memory hot added,The memory can not been added to movable zone

2015-08-26 Thread Changsheng Liu
在 2015/8/26 14:12, Vlastimil Babka 写道: On 26.8.2015 2:36, Changsheng Liu wrote: 在 2015/8/25 19:13, Vlastimil Babka 写道: On 08/25/2015 12:25 PM, Changsheng Liu wrote: Thanks very much for your review, I can move the memory from normal zone to movable zone succesfully. And thank you for let

Re: [PATCH] Memory hot added,The memory can not been added to movable zone

2015-08-26 Thread Changsheng Liu
在 2015/8/26 14:12, Vlastimil Babka 写道: On 26.8.2015 2:36, Changsheng Liu wrote: 在 2015/8/25 19:13, Vlastimil Babka 写道: On 08/25/2015 12:25 PM, Changsheng Liu wrote: Thanks very much for your review, I can move the memory from normal zone to movable zone succesfully. And thank you for let

Re: [PATCH V2] mm:memory hot-add: memory can not been added to movable zone

2015-08-25 Thread Changsheng Liu
First, thanks very much for your review, I will update codes according to your suggestion On 2015/8/25 21:12, Yasuaki Ishimatsu wrote: On Thu, 20 Aug 2015 03:28:05 -0400 Changsheng Liu wrote: From: Changsheng Liu When memory is hot added, should_add_memory_movable() always returns 0

Re: [PATCH] Memory hot added,The memory can not been added to movable zone

2015-08-25 Thread Changsheng Liu
在 2015/8/25 19:13, Vlastimil Babka 写道: On 08/25/2015 12:25 PM, Changsheng Liu wrote: Thanks very much for your review, I can move the memory from normal zone to movable zone succesfully. And thank you for let me understand the memory mechanism better. 在 2015/8/25 3:15, Yasuaki Ishimatsu 写道

Re: [PATCH] Memory hot added,The memory can not been added to movable zone

2015-08-25 Thread Changsheng Liu
Thanks very much for your review, I can move the memory from normal zone to movable zone succesfully. And thank you for let me understand the memory mechanism better. 在 2015/8/25 3:15, Yasuaki Ishimatsu 写道: Hi On Thu, 20 Aug 2015 14:15:13 +0800 Changsheng Liu wrote: Hi Andrew Morton: First

Re: [PATCH] Memory hot added,The memory can not been added to movable zone

2015-08-25 Thread Changsheng Liu
Thanks very much for your review, I can move the memory from normal zone to movable zone succesfully. And thank you for let me understand the memory mechanism better. 在 2015/8/25 3:15, Yasuaki Ishimatsu 写道: Hi On Thu, 20 Aug 2015 14:15:13 +0800 Changsheng Liu liuchangsh...@inspur.com wrote

Re: [PATCH] Memory hot added,The memory can not been added to movable zone

2015-08-25 Thread Changsheng Liu
在 2015/8/25 19:13, Vlastimil Babka 写道: On 08/25/2015 12:25 PM, Changsheng Liu wrote: Thanks very much for your review, I can move the memory from normal zone to movable zone succesfully. And thank you for let me understand the memory mechanism better. 在 2015/8/25 3:15, Yasuaki Ishimatsu 写道

Re: [PATCH V2] mm:memory hot-add: memory can not been added to movable zone

2015-08-25 Thread Changsheng Liu
First, thanks very much for your review, I will update codes according to your suggestion On 2015/8/25 21:12, Yasuaki Ishimatsu wrote: On Thu, 20 Aug 2015 03:28:05 -0400 Changsheng Liu liuchangsh...@inspur.com wrote: From: Changsheng Liu liuchangch...@inspur.com When memory is hot added

Re: [PATCH V2] mm:memory hot-add: memory can not been added to movable zone

2015-08-20 Thread Changsheng Liu
On 08/20/201515:41, Vlastimil Babka wrote: On 08/20/2015 09:28 AM, Changsheng Liu wrote: From: Changsheng Liu When memory is hot added, should_add_memory_movable() always returns 0 because the movable zone is empty, so the memory that was hot added will add to the normal zone even if we want

[PATCH V2] mm:memory hot-add: memory can not been added to movable zone

2015-08-20 Thread Changsheng Liu
From: Changsheng Liu When memory is hot added, should_add_memory_movable() always returns 0 because the movable zone is empty, so the memory that was hot added will add to the normal zone even if we want to remove the memory. So we change should_add_memory_movable(): if the user config

Re: [PATCH] Memory hot added,The memory can not been added to movable zone

2015-08-20 Thread Changsheng Liu
hot added we let the memory be added to movable zone, so we will be able to hot remove the memory that have been hot added On Wed, 20 Aug 2015 7:50, Andrew Morton wrote: On Wed, 19 Aug 2015 04:18:26 -0400 Changsheng Liu wrote: From: Changsheng Liu When memory hot added, th

Re: [PATCH] Memory hot added,The memory can not been added to movable zone

2015-08-20 Thread Changsheng Liu
let the memory be added to movable zone, so we will be able to hot remove the memory that have been hot added On Wed, 20 Aug 2015 7:50, Andrew Morton wrote: On Wed, 19 Aug 2015 04:18:26 -0400 Changsheng Liu liuchangsh...@inspur.com wrote: From: Changsheng Liu liuchangch...@inspur.com

[PATCH V2] mm:memory hot-add: memory can not been added to movable zone

2015-08-20 Thread Changsheng Liu
From: Changsheng Liu liuchangch...@inspur.com When memory is hot added, should_add_memory_movable() always returns 0 because the movable zone is empty, so the memory that was hot added will add to the normal zone even if we want to remove the memory. So we change should_add_memory_movable

Re: [PATCH V2] mm:memory hot-add: memory can not been added to movable zone

2015-08-20 Thread Changsheng Liu
On 08/20/201515:41, Vlastimil Babka wrote: On 08/20/2015 09:28 AM, Changsheng Liu wrote: From: Changsheng Liu liuchangch...@inspur.com When memory is hot added, should_add_memory_movable() always returns 0 because the movable zone is empty, so the memory that was hot added will add

[PATCH] Memory hot added,The memory can not been added to movable zone

2015-08-19 Thread Changsheng Liu
From: Changsheng Liu When memory hot added, the function should_add_memory_movable always return 0,because the movable zone is empty, so the memory that hot added will add to normal zone even if we want to remove the memory. So we change the function should_add_memory_movable,if the user config

[PATCH] Memory hot added to normal zone defaultlly in kernel 4.1.0 The memory hot added to normal zone defaultlly so we need let the memory be added to movable zone if we need remove the added memory

2015-08-19 Thread Changsheng Liu
From: Changsheng Liu --- mm/memory_hotplug.c |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 26fbba7..f5bcd03 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -1198,8 +1198,13 @@ static int

[PATCH] Memory hot added to normal zone defaultlly in kernel 4.1.0 The memory hot added to normal zone defaultlly so we need let the memory be added to movable zone if we need remove the added memory

2015-08-19 Thread Changsheng Liu
From: Changsheng Liu liuchangch...@inspur.com --- mm/memory_hotplug.c |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 26fbba7..f5bcd03 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -1198,8 +1198,13

[PATCH] Memory hot added,The memory can not been added to movable zone

2015-08-19 Thread Changsheng Liu
From: Changsheng Liu liuchangch...@inspur.com When memory hot added, the function should_add_memory_movable always return 0,because the movable zone is empty, so the memory that hot added will add to normal zone even if we want to remove the memory. So we change the function