-
Notifications
You must be signed in to change notification settings - Fork 887
feat: add coder stat
command
#6938
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
Conversation
Suggestion: Should we call this |
@mafredri the |
@ammario fair. Given that, I don't really have any great suggestions or alternatives. Calling it |
@mafredri sysstat is my favorite as well. Might just steal the name. |
This Pull Request is becoming stale. In order to minimize WIP, prevent merge conflicts and keep the tracker readable, I'm going close to this PR in 3 days if there isn't more activity. |
I'm not going to have time to work on this in the next couple of weeks. @bpmct may assist in finding someone new. |
} | ||
|
||
cpuAcct := func() (int64, error) { | ||
path := fmt.Sprintf("/sys/fs/cgroup/cpu,cpuacct/%s/cpuacct.usage", groupDir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bpmct go pkg doesn't handle this on its own, and we need to specify the path of the cgroup, which is kernel/release dependent.
closes #7076