Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 765 for allocable (0.11 sec)

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

    }
    
    func (p *staticPolicy) Allocate(s state.State, pod *v1.Pod, container *v1.Container) (rerr error) {
    	numCPUs := p.guaranteedCPUs(pod, container)
    	if numCPUs == 0 {
    		// container belongs in the shared pool (nothing to do; use default cpuset)
    		return nil
    	}
    
    	klog.InfoS("Static policy: Allocate", "pod", klog.KObj(pod), "containerName", container.Name)
    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. src/runtime/textflag.h

    #define WRAPPER 32
    // This function uses its incoming context register.
    #define NEEDCTXT 64
    // Allocate a word of thread local storage and store the offset from the
    // thread local base to the thread local storage in this variable.
    #define TLSBSS	256
    // Do not insert instructions to allocate a stack frame for this function.
    // Only valid on functions that declare a frame size of 0.
    #define NOFRAME 512
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 01 17:28:41 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. test/fixedbugs/issue13160.go

    package main
    
    import (
    	"fmt"
    	"runtime"
    )
    
    const N = 100000
    
    func main() {
    	// Allocate more Ps than processors.  This raises
    	// the chance that we get interrupted by the OS
    	// in exactly the right (wrong!) place.
    	p := runtime.NumCPU()
    	runtime.GOMAXPROCS(2 * p)
    
    	// Allocate some pointers.
    	ptrs := make([]*int, p)
    	for i := 0; i < p; i++ {
    		ptrs[i] = new(int)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.5K bytes
    - Viewed (0)
  4. subprojects/core/src/testFixtures/groovy/org/gradle/util/ports/ReservedPortRange.groovy

            this.startPort = startPort
            this.endPort = endPort
            current = startPort + new Random().nextInt(endPort - startPort)
        }
    
        /**
         * Allocate an available port
         *
         * @return the port that was allocated
         */
        public int allocate() {
            try {
                lock.lock()
                return getAvailablePort()
            } finally {
                lock.unlock()
            }
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 10 14:46:58 UTC 2017
    - 2.8K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/cpumanager/policy.go

    	"k8s.io/utils/cpuset"
    )
    
    // Policy implements logic for pod container to CPU assignment.
    type Policy interface {
    	Name() string
    	Start(s state.State) error
    	// Allocate call is idempotent
    	Allocate(s state.State, pod *v1.Pod, container *v1.Container) error
    	// RemoveContainer call is idempotent
    	RemoveContainer(s state.State, podUID string, containerName string) error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/node_container_manager_linux_test.go

    			capacity:   tc.capacity,
    		}
    		err := cm.validateNodeAllocatable()
    		if err == nil && tc.invalidConfiguration {
    			t.Fatalf("Expected invalid node allocatable configuration")
    		} else if err != nil && !tc.invalidConfiguration {
    			t.Fatalf("Expected valid node allocatable configuration: %v", err)
    		}
    	}
    
    	ephemeralStorageEvictionThreshold := resource.MustParse("100Mi")
    	ephemeralStorageTestCases := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 12.1K bytes
    - Viewed (0)
  7. src/internal/saferio/io.go

    // data but the input may be corrupt, or may be provided by an
    // untrustworthy attacker.
    package saferio
    
    import (
    	"io"
    	"unsafe"
    )
    
    // chunk is an arbitrary limit on how much memory we are willing
    // to allocate without concern.
    const chunk = 10 << 20 // 10M
    
    // ReadData reads n bytes from the input stream, but avoids allocating
    // all n bytes if n is large. This avoids crashing the program by
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 31 00:34:05 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet_node_status.go

    			existingNode.Status.Capacity = make(map[v1.ResourceName]resource.Quantity)
    		}
    	}
    
    	if existingNode.Status.Allocatable == nil {
    		if initialNode.Status.Allocatable != nil {
    			existingNode.Status.Allocatable = initialNode.Status.Allocatable.DeepCopy()
    			requiresUpdate = true
    		} else {
    			existingNode.Status.Allocatable = make(map[v1.ResourceName]resource.Quantity)
    		}
    	}
    	return requiresUpdate
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  9. subprojects/core/src/testFixtures/groovy/org/gradle/util/ports/AbstractAvailablePortAllocator.groovy

                for (int i = 0; i < reservations.size(); i++) {
                    ReservedPortRange range = reservations.get(i)
                    int port = range.allocate()
                    if (port > 0) {
                        return port
                    }
                }
                // if we couldn't allocate a port from the existing reserved port ranges, get another range
                reservePortRange()
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 05 16:58:31 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  10. src/runtime/cgo/asm_s390x.s

    TEXT crosscall2(SB),NOSPLIT|NOFRAME,$0
    	// Start with standard C stack frame layout and linkage.
    
    	// Save R6-R15 in the register save area of the calling function.
    	STMG	R6, R15, 48(R15)
    
    	// Allocate 96 bytes on the stack.
    	MOVD	$-96(R15), R15
    
    	// Save F8-F15 in our stack frame.
    	FMOVD	F8, 32(R15)
    	FMOVD	F9, 40(R15)
    	FMOVD	F10, 48(R15)
    	FMOVD	F11, 56(R15)
    	FMOVD	F12, 64(R15)
    	FMOVD	F13, 72(R15)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:43:51 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top