Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SMTAlignmentError (0.15 sec)

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

    	PolicyStatic policyName = "static"
    	// ErrorSMTAlignment represents the type of an SMTAlignmentError
    	ErrorSMTAlignment = "SMTAlignmentError"
    )
    
    // SMTAlignmentError represents an error due to SMT alignment
    type SMTAlignmentError struct {
    	RequestedCPUs         int
    	CpusPerCore           int
    	AvailablePhysicalCPUs int
    }
    
    func (e SMTAlignmentError) Error() string {
    	if e.AvailablePhysicalCPUs > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 28.8K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/cpumanager/policy_static_test.go

    			stAssignments:   state.ContainerCPUAssignments{},
    			stDefaultCPUSet: cpuset.New(0, 1, 2, 3, 4, 5, 6, 7),
    			pod:             makePod("fakePod", "fakeContainer2", "1000m", "1000m"),
    			expErr:          SMTAlignmentError{RequestedCPUs: 1, CpusPerCore: 2},
    			expCPUAlloc:     false,
    			expCSet:         cpuset.New(), // reject allocation of sibling of partial core
    		},
    		{
    			// test SMT-level != 2 - which is the default on x86_64
    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