microsoft / microsoft/hcsshim

High vmcompute.exe CPU due to frequent HcsGetComputeSystemProperties calls.

Open
#989 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
694
Forks
304
Avg merge
1d 19h
Merged PRs (30d)
28

Description

vmcompute.exe is taking up to 25% of a core on our AKS managed nodes, the CPU profiling data shows it was mostly caused by vmcompute!HcsRpc_GetSystemProperties. Below image contains the detailed stack:

image

RPC ETW traces indicates the calls are made from kubelet.exe, one example trace shows it calls every 500ms. This API is quite expensive inside vmcompute.exe, can we tune the frequency or use the alternative APIs?

image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the kubelet path that issues HcsGetComputeSystemProperties and review the supplied CPU profile and RPC ETW example showing calls every 500ms. Determine whether the frequency can be reduced or an alternative API used, then verify that vmcompute.exe CPU usage and the expensive HcsRpc_GetSystemProperties calls decrease.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, go, kubernetes
Domain
infrastructure, operating-systems, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.