[Lima] How to monitoring memory usage in lima?

Qiang Yu yuq825 at gmail.com
Mon Nov 14 07:44:25 UTC 2022


You mean you can't find the memory management code in lima kernel
driver? Lima just uses code from drm_gem_shmem_helper.c for MM.

Regards,
Qiang

On Mon, Nov 14, 2022 at 3:25 PM 조영준 (YoungJun Jo)
<youngjun at telechips.com> wrote:
>
> Hi Lima people,
>
> I recently ported lima from mali-400 driver and passed all deqp confirmance tests, all thanks to lima people. But there is one thing I haven't been able to find. I've reviewed the Lima driver, but it doesn't seem to be able to get the memory being used at the driver level like the mali-400 driver. I wonder if I haven't found it or if there is no other way.
> ex.
> # cat /sys/kernel/debug/mali/gpu_memory
>   Name (:bytes) pid        mali_mem max_mali_mem     external_mem     ump_mem     dma_mem
> ============================================================================
>   weston             1645        3276800      12374016                   0                        0            7372800
>
> Best Regards,
> Youngjun


More information about the lima mailing list