Skip to content

coder stat in an idle workspace showing values similar to host #8416

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

Closed
matifali opened this issue Jul 11, 2023 · 5 comments
Closed

coder stat in an idle workspace showing values similar to host #8416

matifali opened this issue Jul 11, 2023 · 5 comments
Labels
s2 Broken use cases or features (with a workaround). Only humans may set this.

Comments

@matifali
Copy link
Member

matifali commented Jul 11, 2023

Coder version: Coder v0.26.0+bf8af90 Mon Jul 10 15:07:14 UTC 2023
OS: Ubuntu 22.04.2 LTS
Template: https://github.com/matifali/coder-templates/tree/main/deeplearning

Docker version
Client: Docker Engine - Community
 Version:           24.0.2
 API version:       1.43
 Go version:        go1.20.4
 Git commit:        cb74dfc
 Built:             Thu May 25 21:51:00 2023
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          24.0.2
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.4
  Git commit:       659604f
  Built:            Thu May 25 21:51:00 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.21
  GitCommit:        3dce8eb055cbb6872793272b4f20ed16117344f8
 runc:
  Version:          1.1.7
  GitCommit:        v1.1.7-0-g860f061
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

coder stat mem

coder@pytorch:~$ coder stat mem
31.2/125 GiB (25%)
coder@pytorch:~$ coder stat mem --host
31.2/125 GiB (25%)

coder stat cpu

coder@pytorch:~$ coder stat cpu
4.08/40 cores (10%)
coder@pytorch:~$ coder stat cpu --host
4.33/40 cores (11%)

By idle workspace, I mean it's a freshly created/started workspace with no process running.

@matifali matifali added s2 Broken use cases or features (with a workaround). Only humans may set this. bug labels Jul 11, 2023
@bpmct
Copy link
Member

bpmct commented Jul 11, 2023

Can you share a bit about your environment? (Docker version, OS)

@matifali
Copy link
Member Author

@bpmct updated with details.

@johnstcn
Copy link
Member

@matifali can you also provide the output of sudo docker stats --no-stream from the underlying host for comparison?

@matifali
Copy link
Member Author

matifali commented Jul 12, 2023

@johnstcn Here is the output

sudo docker stats --no-stream coder-matifali-pytorch
CONTAINER ID   NAME                     CPU %     MEM USAGE / LIMIT   MEM %     NET I/O          BLOCK I/O       PIDS
bfb2029b78a0   coder-matifali-pytorch   0.17%     113.8MiB / 64GiB    0.17%     117MB / 93.4MB   4.1MB / 144MB   67

For comparison, here is the coder agent metadata screenshot that uses coder stat
image

And

PS C:\Users\matif> coder ssh matifali/pytorch
coder@pytorch:~$ coder stat cpu
17.4/40 cores (43%)
coder@pytorch:~$ coder stat mem
70.7/125 GiB (57%)

@github-actions github-actions bot added the stale This issue is like stale bread. label Jan 10, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 17, 2024
@matifali
Copy link
Member Author

This is still a issue.

@matifali matifali reopened this Jan 17, 2024
@matifali matifali removed the stale This issue is like stale bread. label Jan 17, 2024
@sreya sreya closed this as not planned Won't fix, can't repro, duplicate, stale Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s2 Broken use cases or features (with a workaround). Only humans may set this.
Projects
None yet
Development

No branches or pull requests

4 participants