Skip to content

Commit

Permalink
topology-aware: ensure all hints are fully resolved.
Browse files Browse the repository at this point in the history
Resolve potential partial NUMA-only topology hints to full
CPU hints.

Signed-off-by: Krisztian Litkey <[email protected]>
  • Loading branch information
klihub committed Nov 30, 2024
1 parent 3eef414 commit 1f7543d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/plugins/topology-aware/policy/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,7 @@ func (cs *supply) GetScore(req Request) Score {

// calculate real hint scores
hints := cr.container.GetTopologyHints()
hints.ResolvePartialHints(cs.GetNode().System().NodeHintToCPUs)
score.hints = make(map[string]float64, len(hints))

for provider, hint := range cr.container.GetTopologyHints() {
Expand Down

0 comments on commit 1f7543d

Please sign in to comment.