How to show how much memory the VPU uses

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to show how much memory the VPU uses

502 Views
erlend_eriksen
Contributor III

I need to decide how much memory to reserve for the VPU on my i.MX6Q. Therefore, I would like to see how much of the reserved memory it actually uses. Is there a way to check this?

Labels (3)
0 Kudos
1 Reply

432 Views
joanxie
NXP TechSupport
NXP TechSupport

you can use tools like "Antutu" or you can debug vpu source code to get the memory allocation, refer to the vpu_alloc_dam_buffer function in the mxc_vpu.c, if you need to know how much cma, you can refer to the imx6q.dtsi:

reserved-memory {   
#address-cells = <1>;   
#size-cells = <1>;   
ranges;    
/* global autoconfigured region for contiguous allocations */   
linux,cma {    
compatible = "shared-dma-pool";    
reusable;    
size = <0x14000000>;    
linux,cma-default;   
};  
};
0 Kudos