Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for CPULimit (0.1 sec)

  1. pkg/kubelet/kuberuntime/kuberuntime_container_linux.go

    		if runtimeStatusResources.MemoryLimitInBytes > 0 {
    			memLimit = resource.NewQuantity(runtimeStatusResources.MemoryLimitInBytes, resource.BinarySI)
    		}
    		if cpuLimit != nil || memLimit != nil || cpuRequest != nil {
    			cStatusResources = &kubecontainer.ContainerResources{
    				CPULimit:    cpuLimit,
    				CPURequest:  cpuRequest,
    				MemoryLimit: memLimit,
    			}
    		}
    	}
    	return cStatusResources
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  2. pkg/apis/core/fuzzer/fuzzer.go

    		},
    		func(q *core.LimitRangeItem, c fuzz.Continue) {
    			var cpuLimit resource.Quantity
    			c.Fuzz(&cpuLimit)
    
    			q.Type = core.LimitTypeContainer
    			q.Default = make(core.ResourceList)
    			q.Default[core.ResourceCPU] = cpuLimit.DeepCopy()
    
    			q.DefaultRequest = make(core.ResourceList)
    			q.DefaultRequest[core.ResourceCPU] = cpuLimit.DeepCopy()
    
    			q.Max = make(core.ResourceList)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 04:32:01 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
Back to top