- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for IsNarrowerThan (0.53 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)