-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
CPUStats.UsageCoreNanoSeconds is inaccurate on windows - 1/10 of the real value. #124734
Comments
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Could This code caught my attention: kubernetes/pkg/kubelet/winstats/perfcounter_nodestats.go Lines 252 to 254 in 85684ec
usageNanoCores is computed in cri_stats_provider.go, like this: kubernetes/pkg/kubelet/stats/cri_stats_provider.go Lines 792 to 797 in 26923b9
So wouldn't something like this be equivalent (just going by looking at the code)?
|
/sig windows you can open discusion with https://github.com/kubernetes/community/tree/master/sig-windows |
What happened?
The CPU utilization metrics from Kubelet summary API
CPUStats.UsageCoreNanoSeconds
is not accurate on Windows. The value is only 1/10 of the real value which I have other VM level metrics as a proof.summary API CPU utilization metric
VM CPU utilization metric
What did you expect to happen?
The
CPUStats.UsageCoreNanoSeconds
should be accurate on Windows too.How can we reproduce it (as minimally and precisely as possible)?
T1
T2
(20986320000000 - 20985800000000)ns / 50s = 0.01 s/s
This matches the magnitude of the metric chart.
Anything else we need to know?
This problem doesn't exist on Linux.
Call stack
kubernetes/pkg/kubelet/winstats/winstats.go
Lines 118 to 129 in 7fe31be
kubernetes/pkg/kubelet/winstats/perfcounter_nodestats.go
Lines 206 to 212 in 7fe31be
kubernetes/pkg/kubelet/winstats/perfcounters.go
Line 32 in 7fe31be
Kubernetes version
Cloud provider
OS version
Install tools
Container runtime (CRI) and version (if applicable)
Related plugins (CNI, CSI, ...) and versions (if applicable)
The text was updated successfully, but these errors were encountered: