Skip to content
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

perf: get cgroup cpu core #137

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

istudies
Copy link
Contributor

@istudies istudies commented Jan 8, 2023

  1. optimize getCGroupCPUCore() to return the number of CPU cores when the value cannot be obtained.
  2. optimize the use of WithCGroup() and WithGoProcAsCPUCore() together, and WithCGroup() has a higher priority.

holmes.go Outdated Show resolved Hide resolved
holmes.go Outdated Show resolved Hide resolved
util.go Show resolved Hide resolved
@Jun10ng
Copy link
Contributor

Jun10ng commented Jan 11, 2023

LGTM

@doujiang24

Copy link
Member

@doujiang24 doujiang24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@istudies Nice work.

LGTM with a simple comment.
Also, thanks for explaining the meaning of -1 value.

util.go Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants