監測樹莓派GPU使用情況


執行/opt/vc/src/hello_pi/hello_video下的例子,為了驗證是否使用了GPU,所以需要檢測GPU的使用情況

命令

1 sudo vcdbg reloc

沒有執行例子前

0x37000000: free 106M
[   4] 0x3da79d40: used  576 (refcount 1 lock count 0, size      512, align    4, data 0x3da79d60, d0rual) 'ILCS VC buffer pool'
[   3] 0x3da79f80: used 1.5M (refcount 1 lock count 8, size  1572864, align 4096, data 0x3da7a000, d1rual) 'ARM FB'
[   2] 0x3dbfafa0: used  16K (refcount 1 lock count 0, size    16384, align   32, data 0x3dbfafc0, d0ruAl) 'audioplus_tmp_buf'
[   1] 0x3dbfefe0: used 4.0K (refcount 1 lock count 0, size        0, align 4096, data 0x3dbff000, d1rual) 'camera fast alloc arena'
small allocs not requested

執行例子的過程中

0x37000000: free 81M
[  26] 0x3c0ade40: used 268K (refcount 1 lock count 1, size   274560, align   32, data 0x3c0ade60, d0Rual) 'Vdec3 Msgbuf'
[  33] 0x3c0f0f00: used 956K (refcount 1 lock count 0, size   979200, align    4, data 0x3c0f0f20, d1Rual) 'H264 dm_storage'
[  39] 0x3c1e0040: used  544 (refcount 1 lock count 0, size      256, align  256, data 0x3c1e0100, d3rual) 'H264 dummy data partition'
[  38] 0x3c1e0260: used  14K (refcount 1 lock count 0, size    14000, align   64, data 0x3c1e0280, d3rual) 'h264_top_context'
0x3c1e3980: free 32K
[   6] 0x3c1eb9c0: used 1.0M (refcount 1 lock count 0, size  1048576, align  

對比可見,GPU的確在運行

更多命令請查看

sudo vcdbg help


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM