On Thu 09-11-17 14:30:18, Vitaly Kuznetsov wrote: > Michal Hocko <mhocko@xxxxxxxxxx> writes: [...] > > How realistic is that the host gives only such a small amount of memory > > btw? > > It happens all the time, Hyper-V host will gradually increase guest's > memory when Dynamic Memory is enabled. Moreover, there's a manual > interface when host's admin can hotplug memory to guests (starting > WS2016) with 2M granularity. Sigh, this sounds quite insane but whatever. I am not sure we want to make the generic hotplug code more complicated for this single usecase. So I suspect you might be better off by implementing this feature on top of hotplug. Just keep track of the partial sections and make the memory which is not onlined yet reserved and unusable by the kernel. It sucks, I know, but as long as there is not a wider demand for sub section memory hotplug I would be rather reluctant to make the fragile code even more complicated. Mem section granularity is hardcoded in way too many places I am afraid. -- Michal Hocko SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>