Explain the output of gputop

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

Explain the output of gputop

Jump to solution
704 Views
himanshubhavani
Contributor I

Hi,

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

I got the following result.

himanshubhavani_0-1685435266090.png

 

image1241×275 29.6 KB

 

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?

Labels (1)
0 Kudos
1 Solution
625 Views
Dhruvit
NXP TechSupport
NXP TechSupport

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.

View solution in original post

0 Kudos
3 Replies
679 Views
Dhruvit
NXP TechSupport
NXP TechSupport

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

0 Kudos
665 Views
himanshubhavani
Contributor I

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?

0 Kudos
626 Views
Dhruvit
NXP TechSupport
NXP TechSupport

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.

0 Kudos