On 2/18/21 6:24 PM, Charan Teja Reddy wrote: > I would like to start discussion about balancing the occupancy of > memory zones in a node in the system whose imabalance may be caused by > migration of pages to other zones during hotremove and then hotadding > same memory. In this case there is a lot of free memory in newly hotadd > memory which can be filled up by the previous migrated pages(as part of > offline/hotremove) thus may free up some pressure in other zones of the > node. Can you share the use case for doing this? If it's to replace a failed RAM, then it's probably extremely rare, right. > We have the proof-of-concept code tried on the Snapdragon systems with > the system configuration, single memory node of just 2 zones, 6GB normal > zone and 2GB movable zone. And this Movable zone is such that hot-added > once and there after offline/online based on the need. Hm, snapdragon... so is this some kind of power saving thing? Anyway, shouln't auto NUMA balancing help here, and especially "Migrate Pages in lieu of discard" (CC'd Dave) as a generic mechanism, so we wouldn't need to have hotplug-specific actions?