On 2/1/2023 3:47 PM, Minchan Kim wrote: > > I like this patch for different reason but for the specific problem you > mentioned, How about making reclaimer/compaction aware of the problem: > > IOW, when the GFP_KERNEL/DMA allocation happens but not enough memory > in the zones, let's migrates movable pages in those zones into CMA > area/movable zone if they are plenty of free memory. Hi Minchan, Coming back to this thread after a while. If the CMA region is usually free, allocating pages first in the non-CMA region and then moving them into the CMA region would be extra work since it would happen most of the time. In such cases, wouldn't it be better to allocate from the CMA region itself? Sukadev