Skip to content

Commit 07d83ac

Browse files
committed
node: memory-mgr: Update log levels and add logs to capture state update
Signed-off-by: Swati Sehgal <[email protected]>
1 parent 34fd61a commit 07d83ac

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pkg/kubelet/cm/memorymanager/memory_manager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,15 +344,15 @@ func (m *manager) removeStaleState() {
344344
for podUID := range assignments {
345345
for containerName := range assignments[podUID] {
346346
if _, ok := activeContainers[podUID][containerName]; !ok {
347-
klog.InfoS("RemoveStaleState removing state", "podUID", podUID, "containerName", containerName)
347+
klog.V(2).InfoS("RemoveStaleState removing state", "podUID", podUID, "containerName", containerName)
348348
m.policyRemoveContainerByRef(podUID, containerName)
349349
}
350350
}
351351
}
352352

353353
m.containerMap.Visit(func(podUID, containerName, containerID string) {
354354
if _, ok := activeContainers[podUID][containerName]; !ok {
355-
klog.InfoS("RemoveStaleState removing state", "podUID", podUID, "containerName", containerName)
355+
klog.V(2).InfoS("RemoveStaleState removing state", "podUID", podUID, "containerName", containerName)
356356
m.policyRemoveContainerByRef(podUID, containerName)
357357
}
358358
})

pkg/kubelet/cm/memorymanager/state/state_mem.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ func (s *stateMemory) SetMemoryAssignments(assignments ContainerMemoryAssignment
9494
defer s.Unlock()
9595

9696
s.assignments = assignments.Clone()
97+
klog.V(5).InfoS("Updated Memory assignments", "assignments", assignments)
9798
}
9899

99100
// Delete deletes corresponding Blocks from ContainerMemoryAssignments

0 commit comments

Comments
 (0)