Explain the output of gputop

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Explain the output of gputop

跳至解决方案
2,758 次查看
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?

标签 (1)
0 项奖励
回复
1 解答
2,679 次查看
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 项奖励
回复
3 回复数
2,733 次查看
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 项奖励
回复
2,719 次查看
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 项奖励
回复
2,680 次查看
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 项奖励
回复