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.

TDA4VM: total memory size in top

Part Number: TDA4VM

Hello,

I use top command when I want to know memory information.

But I am curious about the information is only the one which Linux(A72 core) can recognize.

For example, if there is 2 GB DDR and there are many cores, A72, C6, C7, R5, etc,...

When I give top command, there is total memory size.

Will it be 2 GB or be totally assigned memory size to Linux?

Thank you very much.

  • Hi,

    The total memory is about 4GB on TDA4. You can see that when you boot in the U-Boot stage:

    U-Boot 2021.01-g15769936a5 (Dec 20 2021 - 16:36:05 +0000)

    SoC: J721E SR2.0
    Model: Texas Instruments K3 J721E SoC
    Board: J721EX-PM2-SOM rev E8
    DRAM: 4 GiB

    The 4GB is split between A72 that runs Linux and other remote cores that are running their respective firmware.

    The Linux device tree carves out memory from the above 4GB to other remote cores & that is given to C7x, C6x, F5F etc.

    You can check the reserved memory nodes in the file: arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi
    The Linux will take into account the above memory regions.

    So the 'Top' command or the 'free' command will only show the memory allocated & available for Linux usage.

    Ex:

    root@j7-evm:~# free
    total used free shared buff/cache available
    Mem: 2304640 287168 1619520 28992 397952 1656448
    Swap: 0 0 0
    root@j7-evm:~#

    Closing this thread.

    Best Regards,
    Keerthy

  • Super thank you Keerthy. Great weekend!