Part Number: TDA4VM
Dear support,
I would like to ask a couple of memory usage related questions. I'm developing on TDA4VM J721e, and during boot it says it has 4GB of RAM, however, after logging in, "free" returns the following:
root@j7-evm:~# free
total used free shared buff/cache available
Mem: 2585664 206720 2085312 36352 293632 2004864
Swap: 0 0 0
I was just wondering if I could make the whole 4GB range of RAM accessible somehow to run my application?
Another issue that has come up is that when I'm trying to run pre-implemented tivx nodes of my graph on the C66 DSPs (like color convert nodes or channel extract nodes) these DSPs' CPU usage jumps up to 80% when each of them are running one node only, and when I chain another node, like a colorconv->channel extract sequence, there's a significant frame rate drop, and the performance keeps decreasing as I try to chain more nodes to run sequentially on the DSPs.
Could it be that the performance degradation is caused by the lack of memory on these devices? During boot I've noticed this part:
[ 0.000000] OF: reserved mem: initialized node c66-dma-memory@a6000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a6100000, size 15 MiB
and my guess is that maybe these DSPs try to use this 15MB memory pool to run their given graph nodes and when they run out of this memory, there's a sync that takes up a whole lot of time. If that's the case, is there a way, that I could tell them to use this memory pool instead?
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000ce000000, size 720 MiB
[ 0.000000] OF: reserved mem: initialized node vision_apps-core-heap-memory@ce000000, compatible id shared-dma-pool
Please ignore my guess if it's completely wrong, but in that case, could you please provide me a brief description on how to run graph node sequences on the C66 DPSs efficiently, so that the performance would not suffer that much?
Kind regards,
Bence