linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Increasing CMA Utilization with a GFP Flag
@ 2020-11-02 14:39 Chris Goldsworthy
  2020-11-02 14:39 ` [PATCH 1/2] cma: redirect page allocation to CMA Chris Goldsworthy
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Chris Goldsworthy @ 2020-11-02 14:39 UTC (permalink / raw)
  To: Andrew Morton, Minchan Kim, Nitin Gupta, Sergey Senozhatsky
  Cc: linux-mm, linux-kernel, Chris Goldsworthy

The current approach to increasing CMA utilization introduced in
commit 16867664936e ("mm,page_alloc,cma: conditionally prefer cma
pageblocks for movable allocations") increases CMA utilization by
redirecting MIGRATE_MOVABLE allocations to a CMA region, when
greater than half of the free pages in a given zone are CMA pages.
The issue in this approach is that allocations with type
MIGRATE_MOVABLE can still succumb to pinning. To get around
this, one approach is to re-direct allocations to the CMA areas, that
are known not to be victims of pinning.

To this end, this series brings in __GFP_CMA, which we mark with
allocations that we know are safe to be redirected to a CMA area.

Heesub Shin (1):
  cma: redirect page allocation to CMA

Vinayak Menon (1):
  zram: allow zram to allocate CMA pages

 drivers/block/zram/zram_drv.c |  5 +--
 include/linux/gfp.h           | 15 ++++++++
 include/linux/highmem.h       |  4 ++-
 include/linux/mmzone.h        |  4 +++
 mm/page_alloc.c               | 83 +++++++++++++++++++++++++++----------------
 mm/zsmalloc.c                 |  4 +--
 6 files changed, 79 insertions(+), 36 deletions(-)

-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-11-03 19:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-02 14:39 [PATCH 0/2] Increasing CMA Utilization with a GFP Flag Chris Goldsworthy
2020-11-02 14:39 ` [PATCH 1/2] cma: redirect page allocation to CMA Chris Goldsworthy
2020-11-03  5:30   ` [cma] 1ea6c22c9b: page_allocation_failure:order:#,mode:#(__GFP_RECLAIMABLE),nodemask=(null) kernel test robot
2020-11-03 18:53     ` David Rientjes
2020-11-02 14:39 ` [PATCH 2/2] zram: allow zram to allocate CMA pages Chris Goldsworthy
2020-11-02 14:44 ` [PATCH 0/2] Increasing CMA Utilization with a GFP Flag Matthew Wilcox
2020-11-02 17:35   ` David Hildenbrand
2020-11-03 19:58   ` Michal Hocko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).