Re: [PATCH RFC 0/1] mm: balancing the node zones occupancy

From: David Hildenbrand
Date: Thu Feb 18 2021 - 14:24:06 EST


On 18.02.21 18:24, 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.

Why is this specific to memory hot(un)plug? I think the problem is more generic:

Assume

1. Application 1 allocates a lot of memory and gets ZONE_MOVABLE.
2. Application 2 allocates a lot of memory and gets ZONE_NORMAL.
3. Application 1 quits.

Same problem, no?

--
Thanks,

David / dhildenb