Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPU statistics using eBPF #247

Open
ilyam8 opened this issue Aug 4, 2021 · 0 comments
Open

CPU statistics using eBPF #247

ilyam8 opened this issue Aug 4, 2021 · 0 comments

Comments

@ilyam8
Copy link
Member

ilyam8 commented Aug 4, 2021

@thiagoftsm commented on Mon Mar 09 2020

Feature idea summary

During the spike #7885 , it was identified that we can bring CPU monitoring using perf events like the command perf does. And considering what we have as output from this command, it is possible to say that we can bring a general CPU statistic using perf events.

Expected behavior

To have new charts that will demonstrate the following information per PID:


       1920.159821 task-clock                #    0.991 CPUs utilized          
                13 context-switches          #    0.007 K/sec                  
                 0 CPU-migrations            #    0.000 K/sec                  
               258 page-faults               #    0.134 K/sec                  
     5,649,595,479 cycles                    #    2.942 GHz                     [83.43%]
     1,808,339,931 stalled-cycles-frontend   #   32.01% frontend cycles idle    [83.54%]
     1,171,884,577 stalled-cycles-backend    #   20.74% backend  cycles idle    [66.77%]
     8,625,207,199 instructions              #    1.53  insns per cycle        
                                             #    0.21  stalled cycles per insn [83.51%]
     1,488,797,176 branches                  #  775.351 M/sec                   [82.58%]
        53,395,139 branch-misses             #    3.59% of all branches         [83.78%]

Ths example was extracted from http://brendangregg.com/perf.html#CPUstatistics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant