Skip to content

Why do I sometimes get all hw counter delta zero #45

Description

@peng-bo-27

Sorry to bother you.

I add print to the MaliDevice::dumpAllCounters_V56 function in daemon/mali_userspace/MaliDevice.cpp
logg.logMessage("-------MailnameBlockIndex %u CounterIndex%u Delta %u",nameBlockIndex,counterIndex,delta);

Normally, the results are as follows
[151.5372070] INFO: dumpAllCounters_V56(mali_userspace/MaliDevice.cpp:673): -------MailnameBlockIndex 0 CounterIndex6 Delta 1039667 [151.5372419] INFO: dumpAllCounters_V56(mali_userspace/MaliDevice.cpp:673): -------MailnameBlockIndex 0 CounterIndex7 Delta 10586 [151.5372562] INFO: dumpAllCounters_V56(mali_userspace/MaliDevice.cpp:673): -------MailnameBlockIndex 0 CounterIndex10 Delta 708480 [151.5372694] INFO: dumpAllCounters_V56(mali_userspace/MaliDevice.cpp:673): -------MailnameBlockIndex 0 CounterIndex18 Delta 331187

Abnormally, the results are as follows
[151.8702393] INFO: dumpAllCounters_V56(mali_userspace/MaliDevice.cpp:673): -------MailnameBlockIndex 0 CounterIndex6 Delta 0 [151.8702683] INFO: dumpAllCounters_V56(mali_userspace/MaliDevice.cpp:673): -------MailnameBlockIndex 0 CounterIndex7 Delta 0 [151.8702905] INFO: dumpAllCounters_V56(mali_userspace/MaliDevice.cpp:673): -------MailnameBlockIndex 0 CounterIndex10 Delta 0 [151.8703119] INFO: dumpAllCounters_V56(mali_userspace/MaliDevice.cpp:673): -------MailnameBlockIndex 0 CounterIndex18 Delta 0

My load program is always running, I try to modify collect frequency use -r low or -r high , -r low means 100HZ ( a hundred times a second ) , but nothing has changed. It's still going to be all zeros.

In same time , MalinameBlockIndex 0 CounterIndex 6 means MaliGPUCyclesGPUActive , it is always around a million.
GPU utilization = MaliGPUCyclesGPUActive / (GpuFrequency / CollectFrequency)
So my calculation of GPU utilization is wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions