Re: [PATCH] mm: include CMA pages in lowmem_reserve at boot

2020-08-13 Thread Michal Hocko
On Thu 13-08-20 10:55:17, Doug Berger wrote: [...] > One example might be a 1GB arm platform that defines a 256MB default CMA > region. The default zones might map as follows: > [0.00] cma: Reserved 256 MiB at 0x3000 > [0.00] Zone ranges: > [0.00] DMA [mem

Re: [PATCH] mm: include CMA pages in lowmem_reserve at boot

2020-08-13 Thread Doug Berger
On 8/13/2020 4:17 AM, Michal Hocko wrote: > On Wed 12-08-20 20:51:38, Doug Berger wrote: >> The lowmem_reserve arrays provide a means of applying pressure >> against allocations from lower zones that were targeted at >> higher zones. Its values are a function of the number of pages >> managed by hi

Re: [PATCH] mm: include CMA pages in lowmem_reserve at boot

2020-08-13 Thread Michal Hocko
On Wed 12-08-20 20:51:38, Doug Berger wrote: > The lowmem_reserve arrays provide a means of applying pressure > against allocations from lower zones that were targeted at > higher zones. Its values are a function of the number of pages > managed by higher zones and are assigned by a call to the > s

[PATCH] mm: include CMA pages in lowmem_reserve at boot

2020-08-12 Thread Doug Berger
The lowmem_reserve arrays provide a means of applying pressure against allocations from lower zones that were targeted at higher zones. Its values are a function of the number of pages managed by higher zones and are assigned by a call to the setup_per_zone_lowmem_reserve() function. The function