Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for CPULimit (0.1 sec)

  1. src/cmd/compile/internal/types2/stdlib_test.go

    	// type-checking (see golang/go#47729).
    	cpulimit := make(chan struct{}, runtime.GOMAXPROCS(0))
    	var wg sync.WaitGroup
    
    	for dir := range dirFiles {
    		dir := dir
    
    		cpulimit <- struct{}{}
    		wg.Add(1)
    		go func() {
    			defer func() {
    				wg.Done()
    				<-cpulimit
    			}()
    
    			_, err := c.getDirPackage(dir)
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:18:33 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. src/go/types/stdlib_test.go

    	// type-checking (see golang/go#47729).
    	cpulimit := make(chan struct{}, runtime.GOMAXPROCS(0))
    	var wg sync.WaitGroup
    
    	for dir := range dirFiles {
    		dir := dir
    
    		cpulimit <- struct{}{}
    		wg.Add(1)
    		go func() {
    			defer func() {
    				wg.Done()
    				<-cpulimit
    			}()
    
    			_, err := c.getDirPackage(dir)
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 04:39:56 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/kuberuntime_manager.go

    		if kubeContainerStatus.Resources.MemoryLimit != nil {
    			currentMemoryLimit = kubeContainerStatus.Resources.MemoryLimit.Value()
    		}
    		if kubeContainerStatus.Resources.CPULimit != nil {
    			currentCPULimit = kubeContainerStatus.Resources.CPULimit.MilliValue()
    		}
    		if kubeContainerStatus.Resources.CPURequest != nil {
    			currentCPURequest = kubeContainerStatus.Resources.CPURequest.MilliValue()
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/cgroup_manager_linux.go

    	if errScan != nil || numItems != 2 {
    		return nil, fmt.Errorf("failed to correctly parse content of cpu.max file ('%s') for cgroup %v: %v",
    			cpuLimitAndPeriod, cgroupPath, errScan)
    	}
    	cpuLimit := int64(-1)
    	if cpuLimitStr != Cgroup2MaxCpuLimit {
    		cpuLimit, err = strconv.ParseInt(cpuLimitStr, 10, 64)
    		if err != nil {
    			return nil, fmt.Errorf("failed to convert CPU limit as integer for cgroup %v: %v", cgroupPath, err)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/container_manager_linux.go

    }
    
    func (cm *containerManagerImpl) SystemCgroupsLimit() v1.ResourceList {
    	cpuLimit := int64(0)
    
    	// Sum up resources of all external containers.
    	for _, cont := range cm.systemContainers {
    		cpuLimit += cont.cpuMillicores
    	}
    
    	return v1.ResourceList{
    		v1.ResourceCPU: *resource.NewMilliQuantity(
    			cpuLimit,
    			resource.DecimalSI),
    	}
    }
    
    func isProcessRunningInHost(pid int) (bool, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/kuberuntime_container_test.go

    				Image:     imageSpec.Image,
    				State:     kubecontainer.ContainerStateRunning,
    				CreatedAt: time.Unix(0, createdAt),
    				StartedAt: time.Unix(0, startedAt),
    				Resources: &kubecontainer.ContainerResources{
    					CPULimit:    resource.NewMilliQuantity(250, resource.DecimalSI),
    					MemoryLimit: resource.NewQuantity(524288000, resource.BinarySI),
    				},
    			},
    			skipOnWindows: true,
    		},
    		"container reporting cpu only": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 28K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/cpumanager/cpu_manager_test.go

    	found     bool
    }
    
    func (psp mockPodStatusProvider) GetPodStatus(uid types.UID) (v1.PodStatus, bool) {
    	return psp.podStatus, psp.found
    }
    
    func makePod(podUID, containerName, cpuRequest, cpuLimit string) *v1.Pod {
    	pod := &v1.Pod{
    		Spec: v1.PodSpec{
    			Containers: []v1.Container{
    				{
    					Resources: v1.ResourceRequirements{
    						Requests: v1.ResourceList{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 42.9K bytes
    - Viewed (0)
  8. pkg/kubelet/container/runtime.go

    type ContainerResources struct {
    	// CPU capacity reserved for the container
    	CPURequest *resource.Quantity
    	// CPU limit enforced on the container
    	CPULimit *resource.Quantity
    	// Memory capaacity reserved for the container
    	MemoryRequest *resource.Quantity
    	// Memory limit enforced on the container
    	MemoryLimit *resource.Quantity
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  9. pkg/kubelet/kubelet_pods.go

    		}
    		// Convert Limits
    		if container.Resources.Limits != nil {
    			limits = make(v1.ResourceList)
    			if cStatus.Resources != nil && cStatus.Resources.CPULimit != nil {
    				limits[v1.ResourceCPU] = cStatus.Resources.CPULimit.DeepCopy()
    			} else {
    				determineResource(v1.ResourceCPU, container.Resources.Limits, oldStatus.Resources.Limits, limits)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  10. cluster/gce/gci/configure-helper.sh

    # copy the file to the manifest dir
    # $1: value for variable 'suffix'
    # $2: value for variable 'port'
    # $3: value for variable 'server_port'
    # $4: value for variable 'cpulimit'
    # $5: pod name, which should be either etcd or etcd-events
    function prepare-etcd-manifest {
      local host_name=${ETCD_HOSTNAME:-$(hostname -s)}
    
      local resolve_host_script_py='
    import socket
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 22:07:47 UTC 2024
    - 141.1K bytes
    - Viewed (0)
Back to top