linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [LSF/MM TOPIC] CMA and larger page sizes
@ 2018-01-26 10:08 Laura Abbott
  2018-01-26 17:25 ` Michal Hocko
  2018-04-17 11:36 ` Michal Hocko
  0 siblings, 2 replies; 11+ messages in thread
From: Laura Abbott @ 2018-01-26 10:08 UTC (permalink / raw)
  To: lsf-pc, linux-mm

CMA as it's currently designed requires alignment to the pageblock size c.f.

         /*
          * Sanitise input arguments.
          * Pages both ends in CMA area could be merged into adjacent unmovable
          * migratetype page by page allocator's buddy algorithm. In the case,
          * you couldn't get a contiguous memory, which is not what we want.
          */
         alignment = max(alignment,  (phys_addr_t)PAGE_SIZE <<
                           max_t(unsigned long, MAX_ORDER - 1, pageblock_order));


On arm64 with 64K page size and transparent huge page, this gives an alignment
of 512MB. This is quite restrictive and can eat up significant portions of
memory on smaller memory targets. Adjusting the configuration options really
isn't ideal for distributions that aim to have a single image which runs on
all targets.

Approaches I've thought about:
- Making CMA alignment less restrictive (and dealing with the fallout from
the comment above)
- Command line option to force a reasonable alignment

There's been some interest in other CMA topics so this might go along well.

Thanks,
Laura

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2018-04-18  8:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-26 10:08 [LSF/MM TOPIC] CMA and larger page sizes Laura Abbott
2018-01-26 17:25 ` Michal Hocko
2018-04-04  5:11   ` Joonsoo Kim
2018-04-11 19:55     ` Laura Abbott
2018-04-11 20:02       ` Vlastimil Babka
2018-04-12  1:06         ` Laura Abbott
2018-04-12  5:51           ` Michal Hocko
2018-04-12  6:27             ` Vlastimil Babka
2018-04-17 11:36 ` Michal Hocko
2018-04-17 15:01   ` Laura Abbott
2018-04-18  8:17     ` Michal Hocko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox