Skip to content

Conversation

@copybara-service
Copy link

Adjust CPU usage based on host cgroup usage

gVisor approximates CPU usage because it doesn't have full control over
task scheduling. Scheduling is handled by the Golang's scheduler and the
host kernel. This can cause gVisor to overeatimate CPU usage, especially
in cases where there are multiple processes executing or cgroups restricts
usage to fractions of a CPU.

In order to report CPU usage more accurately, we use the sandbox's cgroup
CPU usage to estimate how much CPU each container is using.

@copybara-service copybara-service bot added the exported Issue was exported automatically label Nov 4, 2025
@copybara-service copybara-service bot force-pushed the test/cl828118672 branch 3 times, most recently from 34ee868 to 33d8821 Compare November 6, 2025 17:35
@copybara-service copybara-service bot closed this Nov 6, 2025
@copybara-service copybara-service bot deleted the test/cl828118672 branch November 6, 2025 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants