This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3352: How to check CMA usage

Part Number: AM3352

Processor SDK5.3, Kernel: Linux localhost 4.14.79-rt47-g28d73230da #38 Tue Jun 7 20:07:18 +14 2022 armv7l GNU/Linux

in customer's system, along large data communication, occasionally file handle can not be used, including socket, UART handle etc. and the CMA memory is consumed and not freed. 

Wants to know how to check what applied/used CMA?

  • Hi Tony,

    I don't think there is easy way to know who use CMA at runtime.

    You might have to track which drivers/modules are calling cma_alloc() and cma_release(). The kernel driver mm/cma.c has ftrace implemented to track the CMA allocation/deallocation, but I am not sure if it is available in kernel 4.14, which is very old.