Public bug reported:

This upstream fix from v6.18 is not present in the linux-nvidia-6.17
HWE. Pick the patch to that branch to avoid seeing cpu-count of 0 when
running perf stat.

Without fix:
$ sudo perf stat -a -- sleep 10s

 Performance counter stats for 'system wide':

                 0      cpu-clock                        #    0.000 CPUs 
utilized
            906148      context-switches
               377      cpu-migrations

With fix:
$ sudo ./perf stat -a -- sleep 10s

 Performance counter stats for 'system wide':

 3,525,111,825,753      cpu-clock                        #  352.063 CPUs 
utilized             
           505,481      context-switches                 #  143.394 /sec        
              
               370      cpu-migrations                   #    0.105 /sec

** Affects: linux-nvidia (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2139648

Title:
  Backport perf: Fix 0 count issue of cpu-clock

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-nvidia/+bug/2139648/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to