> > Just trying to understand, if kernel parameters is the preferable > > method, why do we even have > > > > MEMORY_HOTPLUG_DEFAULT_ONLINE > > I have some opinion on this one TBH. I have even tried to remove it. The > config option has been added to workaround hotplug issues for some > memory balloning usecases where it was believed that the memory consumed > for the memory hotadd (struct pages) could get machine to OOM before > userspace manages to online it. So I would be more than happy to remove > it but there were some objections in the past. Maybe the work by Oscar > to allocate memmaps from the hotplugged memory can finally put an end to > this gross hack. Makes sense, thank you for the background info. Pasha