Skip to content

perf: get cgroup cpu core#137

Open
istudies wants to merge 3 commits into
mosn:masterfrom
istudies:perf/cpucore
Open

perf: get cgroup cpu core#137
istudies wants to merge 3 commits into
mosn:masterfrom
istudies:perf/cpucore

Conversation

@istudies

@istudies istudies commented Jan 8, 2023

Copy link
Copy Markdown
Contributor
  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.

Comment thread holmes.go Outdated
Comment thread holmes.go Outdated
Comment thread util.go
@Jun10ng

Jun10ng commented Jan 11, 2023

Copy link
Copy Markdown
Contributor

LGTM

@doujiang24

@doujiang24 doujiang24 left a comment

Copy link
Copy Markdown
Member

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.

Comment thread util.go
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