nokyan / resources

Keep an eye on system resources
GNU General Public License v3.0
762 stars 57 forks source link

[Librem 5] Vivante GC7000 Not showing usage #278

Open CaptainMorgan12 opened 4 months ago

CaptainMorgan12 commented 4 months ago

Is there an existing issue for this?

Current Behavior

GPU usage, memory etc shows only 0 and does not update in Process.

Expected Behavior

I would expect at least some GPU usage to be shown.

Steps To Reproduce

  1. use ui, play videos in browser, freetube

Environment

postmarket os edge, wayland, resources 1.5.1, kernel 6.6.32-librem5.2, mesa 24.1.2-r1

Anything else?

No response

nokyan commented 4 months ago

Hi, can you please run flatpak run net.nokyan.Resources in a terminal and copy+paste the output here?

CaptainMorgan12 commented 4 months ago

There is no specific warning that GPU wasnt detected. No debug on resources::utils::gpu . Some items of interest below.

DEBUG resources::utils::pci > Successfully parsed pci.ids Gsk-Message: 09:47:17.411: Failed to realize renderer of type 'GskNglRenderer' for surface 'GdkWaylandToplevel': OpenGL ES 3.0 is not supported by this WARN resources::utils::cpu > No sensor for CPU temperature found!

CPU and memory updates correctly.

nokyan commented 4 months ago

Do the Processes and Apps pages work correctly? As in are there processes being listed or do you only see "System Processes" in Apps and nothing in Processes?

CaptainMorgan12 commented 4 months ago

System and App processes show correctly with Memory, and Processor %, but no GPU % value.

nokyan commented 4 months ago

Could you send me the output of tree /sys/class/drm/card?/device as well as cat /sys/class/drm/card?/device/uevent?

CaptainMorgan12 commented 4 months ago

devices.txt

drm.txt

nokyan commented 4 months ago

It looks like the driver for your GPU does not provide usage statistics unfortunately. Not much I can do about it. :/ Do you know about GPU monitoring tools that work for your GPU?

CaptainMorgan12 commented 4 months ago

According to guido.gunther GC7000 and GC7000Lite are using the etnaviv mesa driver and Gallium HUD should provide the performance bits. However as you can see below the GPU-load does not appear. There is also glmark2 which provides performance metrics of the graphics using glmark2-es2-wayland --fullscreen, but metrics are only in FPS, and FrameTime ms, no GPU load.

glxgears

nokyan commented 4 months ago

Hm, okay. You could also try the CLI utility nvtop.

CaptainMorgan12 commented 4 months ago

It reports No GPU to monitor, the tool I think is only for NVIDIA GPUs. Thanks for the suggestion. The tools above seems to be the only ones I have come up with that work somewhat.

nokyan commented 4 months ago

It reports No GPU to monitor, the tool I think is only for NVIDIA GPUs. Thanks for the suggestion. The tools above seems to be the only ones I have come up with that work somewhat.

Despite its name, nvtop also supports non-NVIDIA GPUs. :)

I'll continue to look around but I think the etnaviv driver just doesn't expose that information unfortunately. :/

CaptainMorgan12 commented 4 months ago

Ok I might have found the only tool called Vivante Analyzer (windows tool). This puts out a .vpd file that has GPU cycles.

Vivante GPU Profiler iMX6. There is nothing on their website about iMX8 as far as I can tell, but maybe it works with iMX8.

Vivante.Tool.Kit.User.Guide-v1.2.pdf

It looks like it requires the kernel to be re-compiled to enable profiler settings.

Screenshot from 2024-07-08 14-55-58