diff --git a/docs/benchmarks/hami_contention.png b/docs/benchmarks/hami_contention.png new file mode 100644 index 0000000000..ea0f61d36b Binary files /dev/null and b/docs/benchmarks/hami_contention.png differ diff --git a/pkg/device/pods.go b/pkg/device/pods.go index a549bc4c5d..4782118047 100644 --- a/pkg/device/pods.go +++ b/pkg/device/pods.go @@ -238,6 +238,8 @@ func (m *PodManager) GetScheduledPods() (map[k8stypes.UID]*PodInfo, error) { // Return a shallow copy of the pods map to avoid race conditions. // This prevents a "concurrent map iteration and map write" fatal error. podsCopy := make(map[k8stypes.UID]*PodInfo, podCount) - maps.Copy(podsCopy, m.pods) + for k, v := range m.pods { + podsCopy[k] = v.DeepCopy() + } return podsCopy, nil }