- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for IsNarrowerThan (0.23 sec)
-
pkg/kubelet/cm/topologymanager/bitmask/bitmask.go
return *s == *mask.(*bitMask) } // IsNarrowerThan checks if one mask is narrower than another. // // A mask is said to be "narrower" than another if it has lets bits set. If the // same number of bits are set in both masks, then the mask with more // lower-numbered bits set wins out. func (s *bitMask) IsNarrowerThan(mask BitMask) bool { if s.Count() == mask.Count() { return s.IsLessThan(mask)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 03 09:45:09 UTC 2022 - 5.1K bytes - Viewed (0) -
pkg/kubelet/cm/topologymanager/numa_info.go
numaInfo := &NUMAInfo{ Nodes: numaNodes, NUMADistances: distances, } return numaInfo, nil } func (n *NUMAInfo) Narrowest(m1 bitmask.BitMask, m2 bitmask.BitMask) bitmask.BitMask { if m1.IsNarrowerThan(m2) { return m1 } return m2 } func (n *NUMAInfo) Closest(m1 bitmask.BitMask, m2 bitmask.BitMask) bitmask.BitMask { // If the length of both bitmasks aren't the same, choose the one that is narrowest.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 09 16:52:14 UTC 2022 - 2.7K bytes - Viewed (0) -
pkg/kubelet/cm/topologymanager/topology_manager.go
func (th *TopologyHint) LessThan(other TopologyHint) bool { if th.Preferred != other.Preferred { return th.Preferred } return th.NUMANodeAffinity.IsNarrowerThan(other.NUMANodeAffinity) } var _ Manager = &manager{} // NewManager creates a new TopologyManager based on provided policy and scope
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jul 15 12:43:16 UTC 2023 - 7.6K bytes - Viewed (0) -
pkg/kubelet/cm/topologymanager/policy.go
for i := range hints { if hints[i].NUMANodeAffinity == nil { continue } if narrowestHint == nil { narrowestHint = &hints[i] } if hints[i].NUMANodeAffinity.IsNarrowerThan(narrowestHint.NUMANodeAffinity) { narrowestHint = &hints[i] } } return narrowestHint } func maxOfMinAffinityCounts(filteredHints [][]TopologyHint) int { maxOfMinCount := 0
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 03 09:45:25 UTC 2022 - 12.7K bytes - Viewed (0) -
pkg/kubelet/cm/topologymanager/bitmask/bitmask_test.go
expectedFirstNarrower: false, }, } for _, tc := range tcases { firstMask, _ := NewBitMask(tc.firstMask...) secondMask, _ := NewBitMask(tc.secondMask...) expectedFirstNarrower := firstMask.IsNarrowerThan(secondMask) if expectedFirstNarrower != tc.expectedFirstNarrower { t.Errorf("Expected value to be %v, got %v", tc.expectedFirstNarrower, expectedFirstNarrower) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 03 09:45:09 UTC 2022 - 16.2K bytes - Viewed (0) -
pkg/kubelet/cm/memorymanager/policy_static.go
bestHint = hint continue } // both hints has the same preferred value, but the current hint has less NUMA nodes than the extended one if hint.Preferred == bestHint.Preferred && hint.NUMANodeAffinity.IsNarrowerThan(bestHint.NUMANodeAffinity) { bestHint = hint } } return &bestHint } // GetAllocatableMemory returns the amount of allocatable memory for each NUMA node
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Nov 12 07:34:55 UTC 2023 - 34K bytes - Viewed (0)