mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* malloc() size in CMA region seems to be aligned to CMA_ALIGNMENT
@ 2016-05-17 15:37 lunar12 lunartwix
  2016-05-18  8:48 ` Michal Hocko
  0 siblings, 1 reply; 4+ messages in thread
From: lunar12 lunartwix @ 2016-05-17 15:37 UTC (permalink / raw)
  To: linux-kernel

A 4MB dma_alloc_coherent  in kernel after malloc(2*1024) 40 times in
CMA region by user space will cause an error on our ARM 3.18 kernel
platform with a 32MB CMA.

It seems that the malloc in CMA region will be aligned to
CMA_ALIGNMENT everytime even if the requested malloc size is very
small so the CMA region is not available after the malloc operations.

Is there any configuraiton that can change this behavior??

Thanks

Cheers
Ken

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

end of thread, other threads:[~2016-05-19  0:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-17 15:37 malloc() size in CMA region seems to be aligned to CMA_ALIGNMENT lunar12 lunartwix
2016-05-18  8:48 ` Michal Hocko
2016-05-18 13:15   ` lunar12 lunartwix
2016-05-19  0:52     ` Joonsoo Kim

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

all inboxes | Powered by JetHome®