You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As such, I think tools like htop don't work (the CPU usage shown is just always zero). My goal is mostly to be able to run htop within a runsc container.
Steps to reproduce
docker run --runtime=runsc --rm -it ubuntu cat /proc/stat
You will see a bunch of zeros. Alternatively, run htop within a runsc container; the CPU usage will be zero everywhere.
runsc version
No response
docker version (if using docker)
Client: Docker Engine - Community
Version: 24.0.7
API version: 1.43
Go version: go1.20.10
Git commit: afdd53b
Built: Thu Oct 26 09:08:01 2023
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 24.0.7
API version: 1.43 (minimum version 1.12)
Go version: go1.20.10
Git commit: 311b9ff
Built: Thu Oct 26 09:08:01 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.26
GitCommit: 3dd1e886e55dd695541fdcd67420c2888645a495
runc:
Version: 1.1.10
GitCommit: v1.1.10-0-g18a0cb0
docker-init:
Version: 0.19.0
GitCommit: de40ad0
uname
Linux ip-10-1-5-239 5.15.0-1048-aws #53~20.04.1-Ubuntu SMP Wed Oct 4 16:44:20 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
kubectl (if using Kubernetes)
No response
repo state (if built from source)
release-20240122.0-27-gac416763d
runsc debug logs (if available)
No response
The text was updated successfully, but these errors were encountered:
Do you know how difficult this functionality would be to implement? Would the implementation of overall CPU stats be to maintain an exitedCPUStats property in Kernel (updated every time a task exits in task_exit.go) and aggregate k.exitedCPUStats with k.TaskSet().Root.tasks.CPUStats()?
I'm not sure how to get per-core aggregate information...
Description
When I
cat /proc/stat
in gvisor, I see a bunch of zeros:As such, I think tools like
htop
don't work (the CPU usage shown is just always zero). My goal is mostly to be able to runhtop
within a runsc container.Steps to reproduce
You will see a bunch of zeros. Alternatively, run
htop
within a runsc container; the CPU usage will be zero everywhere.runsc version
No response
docker version (if using docker)
Client: Docker Engine - Community Version: 24.0.7 API version: 1.43 Go version: go1.20.10 Git commit: afdd53b Built: Thu Oct 26 09:08:01 2023 OS/Arch: linux/amd64 Context: default Server: Docker Engine - Community Engine: Version: 24.0.7 API version: 1.43 (minimum version 1.12) Go version: go1.20.10 Git commit: 311b9ff Built: Thu Oct 26 09:08:01 2023 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.26 GitCommit: 3dd1e886e55dd695541fdcd67420c2888645a495 runc: Version: 1.1.10 GitCommit: v1.1.10-0-g18a0cb0 docker-init: Version: 0.19.0 GitCommit: de40ad0
uname
Linux ip-10-1-5-239 5.15.0-1048-aws #53~20.04.1-Ubuntu SMP Wed Oct 4 16:44:20 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
kubectl (if using Kubernetes)
No response
repo state (if built from source)
release-20240122.0-27-gac416763d
runsc debug logs (if available)
No response
The text was updated successfully, but these errors were encountered: