Closed changzhi1990 closed 1 year ago
@changzhi1990 What is the expected CPU utilization?
@changzhi1990 What is the expected CPU utilization?
The expected utilization is 100%
@changzhi1990 What is the expected CPU utilization?
The expected utilization is 100%
Because I use the stress process and I can see the CPU utilization is almost 100% by htop of the specific core.
@changzhi1990 The CPU utilization presented by PerfSpect is the average utilization across all cores/threads. The stress-ng command you are running is running only 2 threads.
@changzhi1990 The CPU utilization presented by PerfSpect is the average utilization across all cores/threads. The stress-ng command you are running is running only 2 threads.
Thanks for your reply. I try to add a new feature to collcet the perf events of the specific CPU cores, like this
But the CPU utilization is almost 0% in the html file. So I think maybe I need to modify the code further.
there's two things you could do here.
sudo ./perf-collect --thread
. This cannot generate an HTML file yetsudo ./perf-collect --pid <your-stress-ng-process-id>
. I also don't think this can generate an HTML filesince these aren't supported in the HTML report yet you'll have to look in the csv for metric_CPU utilization %
closing because PerfSpect is functioning as intended. It shows system-wide cpu utilization which is very low in this case (given that only one thread is occupied at 100%)
I try to use perf-collect.py to collect the metrics of "stress" process.
But I meet a warning like this:
If I ignore these warnings, the CPU utilization is inaccurate in the cpu.html file.
Is there any relationship between the warning info and the inaccurate problem?
Thanks!