Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewBitMask (0.11 sec)

  1. pkg/kubelet/cm/cpumanager/topology_hints_test.go

    	cpuSetAcrossSocket, _ := cpuset.Parse("0-28,40-57")
    
    	m0001, _ := bitmask.NewBitMask(0)
    	m0011, _ := bitmask.NewBitMask(0, 1)
    	m0101, _ := bitmask.NewBitMask(0, 2)
    	m1001, _ := bitmask.NewBitMask(0, 3)
    	m0111, _ := bitmask.NewBitMask(0, 1, 2)
    	m1011, _ := bitmask.NewBitMask(0, 1, 3)
    	m1101, _ := bitmask.NewBitMask(0, 2, 3)
    	m1111, _ := bitmask.NewBitMask(0, 1, 2, 3)
    
    	testCases := []struct {
    		description   string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/cpumanager/policy_static_test.go

    			expErr:          nil,
    			expCPUAlloc:     true,
    			expCSet:         cpuset.New(1, 2, 3, 4, 5, 7, 8, 9, 10, 11),
    		},
    	}
    	newNUMAAffinity := func(bits ...int) bitmask.BitMask {
    		affinity, _ := bitmask.NewBitMask(bits...)
    		return affinity
    	}
    	alignBySocketOptionTestCases := []staticPolicyTest{
    		{
    			description: "Align by socket: true, cpu's within same socket of numa in hint are part of allocation",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 40.8K bytes
    - Viewed (0)
Back to top