Explain the output of gputop

Board : Apalis iMX6 Quad 1GB
Build environment : Yocto Zeus
Kernel : 5.4


I am using gputop for finding the usage of RAM by GPU. I have downloaded gputop from gputop

I got the following result.

I confused with TOT and TOT_CON. I have check the function for calculation of both. I found that TOT_CON is remaining CMA memory from allocated CMA to GPU (allocated CMA - RES(KB)). but it is not matched with TOTAL or TOT.

Here, I have doubt that CONT(kB) is part of reserved.

Could some one explain this and gputop?

In general, TOT_CON should reflect the contiguous memory usage by the GPU, while CONT represents the reserved memory within that contiguous memory range.
Referring to the latest documentation or source code for gputop can provide the most up-to-date information and help clarify any further doubts or questions you may have.