• Arik Hadas's avatar
    kubelet/cm: code optimization for the static policy · 26e1c1ce
    Arik Hadas authored
    Minor optimization in the code that attempts to assign whole
    sockets/cores in case the number of CPUs requested is higher
    than CPUs-per-socket/core: check if the number of requested
    CPUs is higher than CPUs-per-socket/core before retrieving
    and iterating the free sockets/cores, and break the loops
    when that is no longer the case.
    Signed-off-by: 's avatarArik Hadas <ahadas@redhat.com>
    26e1c1ce
cpu_assignment.go 6.07 KB