Skip to content

Commit

Permalink
resmgr: set initial RDT and blkio class on creation.
Browse files Browse the repository at this point in the history
Set up initial RDT and block I/O classes on creation. Resolve
classes identically to updates.

Signed-off-by: Krisztian Litkey <[email protected]>
  • Loading branch information
klihub committed Mar 11, 2025
1 parent fbdb331 commit 75efff7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkg/resmgr/nri.go
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,17 @@ func (p *nriPlugin) getPendingAdjustment(container *api.Container) *api.Containe
for _, ctrl := range c.GetPending() {
c.ClearPending(ctrl)
}
if adjust != nil {
if bioc := c.GetBlockIOClass(); bioc != "" {
adjust.SetLinuxBlockIOClass(bioc)
}
if rdtc := c.GetRDTClass(); rdtc != "" {
if rdtc == cache.RDTClassPodQoS {
rdtc = string(c.GetQOSClass())
}
adjust.SetLinuxRDTClass(rdtc)
}
}
return adjust
}

Expand Down

0 comments on commit 75efff7

Please sign in to comment.