Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions test/e2e/performanceprofile/functests/13_llc/llc.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,22 @@ var _ = Describe("[rfe_id:77446] LLC-aware cpu pinning", Label(string(label.Open

When("align-cpus-by-uncorecache cpumanager policy option is disabled", func() {
It("[test_id:77724] cpumanager Policy option in kubelet is configured appropriately", func(ctx context.Context) {
DeferCleanup(func(cleanupCtx context.Context) {
By("Restoring prefer-align-cpus-by-uncorecache to true")
profileAnnotations["kubeletconfig.experimental"] = llcPolicy
perfProfile, err = profiles.GetByNodeLabels(testutils.NodeSelectorLabels)
Expect(err).ToNot(HaveOccurred())
perfProfile.Annotations = profileAnnotations

profiles.UpdateWithRetry(perfProfile)

By(fmt.Sprintf("Applying changes in performance profile and waiting until %s will start updating", poolName))
profilesupdate.WaitForTuningUpdating(cleanupCtx, perfProfile)

By(fmt.Sprintf("Waiting when %s finishes updates", poolName))
profilesupdate.WaitForTuningUpdated(cleanupCtx, perfProfile)
})

llcDisablePolicy := `{"cpuManagerPolicyOptions":{"prefer-align-cpus-by-uncorecache":"false", "full-pcpus-only":"true"}}`
profileAnnotations["kubeletconfig.experimental"] = llcDisablePolicy
perfProfile.Annotations = profileAnnotations
Expand Down