[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] WTH is going on with memory hotplug sysf interface (was: Re: [RFC PATCH] mm, hotplug: get rid of auto_online_blocks)
- To: Michal Hocko <mhocko@xxxxxxxxxx>
- From: Reza Arbab <arbab@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 10 Mar 2017 13:00:37 -0600
- Cc: xieyisheng1@xxxxxxxxxx, toshi.kani@xxxxxxx, iamjoonsoo.kim@xxxxxxx, Heiko Carstens <heiko.carstens@xxxxxxxxxx>, Zhang Zhen <zhenzhang.zhang@xxxxxxxxxx>, Tang Chen <tangchen@xxxxxxxxxxxxxx>, linux-mm@xxxxxxxxx, qiuxishi@xxxxxxxxxx, "K. Y. Srinivasan" <kys@xxxxxxxxxxxxx>, linux-s390@xxxxxxxxxxxxxxx, Daniel Kiper <daniel.kiper@xxxxxxxxxx>, linux-acpi@xxxxxxxxxxxxxxx, David Rientjes <rientjes@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, Yasuaki Ishimatsu <yasu.isimatu@xxxxxxxxx>, slaoub@xxxxxxxxx, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, vbabka@xxxxxxx, Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx>, LKML <linux-kernel@xxxxxxxxxxxxxxx>, linux-api@xxxxxxxxxxxxxxx, Igor Mammedov <imammedo@xxxxxxxxxx>, Vitaly Kuznetsov <vkuznets@xxxxxxxxxx>
- Delivery-date: Fri, 10 Mar 2017 19:01:04 +0000
- List-id: Xen developer discussion <xen-devel.lists.xen.org>
On Fri, Mar 10, 2017 at 04:53:33PM +0100, Michal Hocko wrote:
OK, so while I was playing with this setup some more I probably got why
this is done this way. All new memblocks are added to the zone Normal
where they are accounted as spanned but not present.
It's not always zone Normal. See zone_for_memory(). This leads to a
workaround for having to do online_movable in descending block order.
Instead of this:
1. probe block 34, probe block 33, probe block 32, ...
2. online_movable 34, online_movable 33, online_movable 32, ...
you can online_movable the first block before adding the rest:
1. probe block 32, online_movable 32
2. probe block 33, probe block 34, ...
- zone_for_memory() will cause these to start Movable
3. online 33, online 34, ...
- they're already in Movable, so online_movable is equivalentr
I agree with your general sentiment that this stuff is very
nonintuitive.
--
Reza Arbab
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel
- References:
- Re: [Xen-devel] [RFC PATCH] mm, hotplug: get rid of auto_online_blocks
- Re: [Xen-devel] [RFC PATCH] mm, hotplug: get rid of auto_online_blocks
- Re: [Xen-devel] [RFC PATCH] mm, hotplug: get rid of auto_online_blocks
- Re: [Xen-devel] [RFC PATCH] mm, hotplug: get rid of auto_online_blocks
- Re: [Xen-devel] [RFC PATCH] mm, hotplug: get rid of auto_online_blocks
- Re: [Xen-devel] [RFC PATCH] mm, hotplug: get rid of auto_online_blocks
- Re: [Xen-devel] [RFC PATCH] mm, hotplug: get rid of auto_online_blocks
- Re: [Xen-devel] [RFC PATCH] mm, hotplug: get rid of auto_online_blocks
- [Xen-devel] WTH is going on with memory hotplug sysf interface (was: Re: [RFC PATCH] mm, hotplug: get rid of auto_online_blocks)
- Re: [Xen-devel] WTH is going on with memory hotplug sysf interface (was: Re: [RFC PATCH] mm, hotplug: get rid of auto_online_blocks)
|