Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 72 for bitMask (0.33 sec)

  1. pkg/kubelet/cm/devicemanager/topology_hints.go

    	minAffinitySize := len(m.numaNodes)
    
    	// Iterate through all combinations of NUMA Nodes and build hints from them.
    	hints := []topologymanager.TopologyHint{}
    	bitmask.IterateBitMasks(m.numaNodes, func(mask bitmask.BitMask) {
    		// First, update minAffinitySize for the current request size.
    		devicesInMask := 0
    		for _, device := range m.allDevices[resource] {
    			if mask.AnySet(m.getNUMANodeIds(device.Topology)) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jan 27 02:10:25 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/cpumanager/policy_static.go

    	minAffinitySize := p.topology.CPUDetails.NUMANodes().Size()
    
    	// Iterate through all combinations of numa nodes bitmask and build hints from them.
    	hints := []topologymanager.TopologyHint{}
    	bitmask.IterateBitMasks(p.topology.CPUDetails.NUMANodes().List(), func(mask bitmask.BitMask) {
    		// First, update minAffinitySize for the current request size.
    		cpusInMask := p.topology.CPUDetails.CPUsInNUMANodes(mask.GetBits()...).Size()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 28.8K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/topologymanager/topology_manager.go

    	GetAffinity(podUID string, containerName string) TopologyHint
    	GetPolicy() Policy
    }
    
    // TopologyHint is a struct containing the NUMANodeAffinity for a Container
    type TopologyHint struct {
    	NUMANodeAffinity bitmask.BitMask
    	// Preferred is set to true when the NUMANodeAffinity encodes a preferred
    	// allocation for the Container. It is set to false otherwise.
    	Preferred bool
    }
    
    // IsEqual checks if TopologyHint are equal
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 15 12:43:16 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/topologymanager/topology_manager_test.go

    	"strings"
    	"testing"
    
    	"k8s.io/api/core/v1"
    
    	cadvisorapi "github.com/google/cadvisor/info/v1"
    
    	"k8s.io/kubernetes/pkg/kubelet/cm/topologymanager/bitmask"
    	"k8s.io/kubernetes/pkg/kubelet/lifecycle"
    )
    
    func NewTestBitMask(sockets ...int) bitmask.BitMask {
    	s, _ := bitmask.NewBitMask(sockets...)
    	return s
    }
    
    func TestNewManager(t *testing.T) {
    	tcases := []struct {
    		description    string
    		policyName     string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 13:04:32 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/cel/mutation/common/constants.go

    import (
    	"github.com/google/cel-go/common/types/traits"
    )
    
    // RootTypeReferenceName is the root reference that all type names should start with.
    const RootTypeReferenceName = "Object"
    
    // ObjectTraits is the bitmask that represents traits that an object should have.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 24 00:01:35 UTC 2024
    - 897 bytes
    - Viewed (0)
  6. test/fixedbugs/issue30606b.go

    var ptrType = typ((*byte)(nil))
    
    // Arrays of pointers. There are two size thresholds.
    // Bit masks are chunked in groups of 120 pointers.
    // Array types with >16384 pointers have a GC program instead of a bitmask.
    var smallPtrType = reflect.ArrayOf(100, ptrType)
    var mediumPtrType = reflect.ArrayOf(1000, ptrType)
    var bigPtrType = reflect.ArrayOf(16385, ptrType)
    
    var x0 = reflect.New(reflect.StructOf([]reflect.StructField{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 00:06:12 UTC 2019
    - 1.5K bytes
    - Viewed (0)
  7. src/crypto/rsa/pss.go

    	//     stop.
    	var bitMask byte = 0xff >> (8*emLen - emBits)
    	if em[0] & ^bitMask != 0 {
    		return ErrVerification
    	}
    
    	// 7.  Let dbMask = MGF(H, emLen - hLen - 1).
    	//
    	// 8.  Let DB = maskedDB \xor dbMask.
    	mgf1XOR(db, hash, h)
    
    	// 9.  Set the leftmost 8 * emLen - emBits bits of the leftmost octet in DB
    	//     to zero.
    	db[0] &= bitMask
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 11K bytes
    - Viewed (0)
  8. src/net/netip/uint128.go

    //
    // When the methods below mention a bit number, bit 0 is the most
    // significant bit (in hi) and bit 127 is the lowest (lo&1).
    type uint128 struct {
    	hi uint64
    	lo uint64
    }
    
    // mask6 returns a uint128 bitmask with the topmost n bits of a
    // 128-bit number.
    func mask6(n int) uint128 {
    	return uint128{^(^uint64(0) >> n), ^uint64(0) << (128 - n)}
    }
    
    // isZero reports whether u == 0.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 07 21:28:44 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/memorymanager/state/state.go

    			}
    		}
    	}
    	return clone
    }
    
    // Block is a data structure used to represent a certain amount of memory
    type Block struct {
    	// NUMAAffinity contains the string that represents NUMA affinity bitmask
    	NUMAAffinity []int           `json:"numaAffinity"`
    	Type         v1.ResourceName `json:"type"`
    	Size         uint64          `json:"size"`
    }
    
    // ContainerMemoryAssignments stores memory assignments of containers
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 08 23:10:00 UTC 2021
    - 4.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

      }
    
      private static final int MAXIMUM_CAPACITY = 1 << 30;
    
      static final float DEFAULT_LOAD_FACTOR = 1.0f;
    
      /** Bitmask that selects the low 32 bits. */
      private static final long NEXT_MASK = (1L << 32) - 1;
    
      /** Bitmask that selects the high 32 bits. */
      private static final long HASH_MASK = ~NEXT_MASK;
    
      static final int DEFAULT_SIZE = 3;
    
      // used to indicate blank table entries
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 15K bytes
    - Viewed (0)
Back to top