-
Notifications
You must be signed in to change notification settings - Fork 109
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
fix(qrm): cpu plugin allocate for blocks according to calculated sequence #171
fix(qrm): cpu plugin allocate for blocks according to calculated sequence #171
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #171 +/- ##
==========================================
- Coverage 50.97% 50.92% -0.06%
==========================================
Files 418 418
Lines 40409 40478 +69
==========================================
+ Hits 20600 20614 +14
- Misses 17539 17605 +66
+ Partials 2270 2259 -11
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
} | ||
return cpusets | ||
} | ||
|
||
// GetBlocks parses ListAndWatchResponse and returns map[int]map[string]*Block, |
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.
comment should also be modified
entryName, subEntryName := namesTuple[0], namesTuple[1] | ||
|
||
if isPod { | ||
if subEntryName != "" { |
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.
- use
FakedContainerName
instead of""
- can this sorting logic be extracted to a separate function? (since both the four-layer loops and sorting logic are a little complicated)
// GetBlocks parses ListAndWatchResponse and returns map[int]map[string]*Block, | ||
// the map is keyed as numa id -> block id -> block | ||
func (lwr *ListAndWatchResponse) GetBlocks() (map[int]map[string]*Block, error) { | ||
func (lwr *ListAndWatchResponse) GetBlocks() (map[int]map[string]*Block, map[int][]string, error) { |
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.
why should still keep the previous returned value (i.e. map[int]map[string]*Block
) here? just for legacy reasons or for coding convenience ?
f9dafc8
to
6b9a058
Compare
6b9a058
to
aaecd01
Compare
652fd4c
…ence (kubewharf#171) * fix(qrm): cpu plugin allocate for blocks according to calculated sequence * fix(qrm): refine block sequence calculation by review comments * fix concurrent testing issues for logging --------- Co-authored-by: shaowei.wayne <shaowei.wayne@bytedance.com>
fix(qrm): cpu plugin allocate for blocks according to calculated sequence