Hi,
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 checked 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?
Solved! Go to Solution.
Hi @himanshubhavani,
I hope you are doing well.
Here,
TOT_CON = contigousSize - total reserved memory.
In this case, => Total Reserved memory is 21804 kB
& contiguousSize = TOT_CON + total reserved memory(client) = 43731 + 21804 = 65,535 kB.
Please share the output of below command.
# cat /sys/module/galcore/parameters/contiguousSize
Thanks & Regards,
Dhruvit Vasavada.
Hi @himanshubhavani,
I hope you are doing well.
->GPUTOP can be used to determine the memory usage your application is using or to read the hardware counters exposed by the GPU in real time. Additionally, DMA engines and Occupancy states are displayed. GPUTOP has multiple viewing pages: a MEMORY USAGE page, two HARDWARE COUNTER pages, a DMA ENGINE page, and an OCCUPANCY page. When normally started, GPUTOP will be in interactive mode. Type 'h' to get a list of the current keybindings.
->When viewing the client attached page the following head columns are displayed:
PID RES(kB) CONT(kB) VIRT(kB) Non-PGD(kB) Total(kB) CMD
- PID -- process id
- RES -- reserved memory
- CONT -- contiguous memory
- VIRT -- virtual memory
- Non-PGD -- Non-paged memory
- Total -- the sum of all above
- CMD -- the name of the application (trimmed)
->These memory items correspond to memory pools in the driver.
I hope this information helps you!
Thanks & Regards,
Dhruvit Vasvada
hi @Dhruvit ,
Thanks for your reply.
I have read this in document. but, I did not understand TOT_CON and how is it co-related to total?
Hi @himanshubhavani,
I hope you are doing well.
Here,
TOT_CON = contigousSize - total reserved memory.
In this case, => Total Reserved memory is 21804 kB
& contiguousSize = TOT_CON + total reserved memory(client) = 43731 + 21804 = 65,535 kB.
Please share the output of below command.
# cat /sys/module/galcore/parameters/contiguousSize
Thanks & Regards,
Dhruvit Vasavada.