Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for MemoryLimitInBytes (0.19 sec)

  1. pkg/kubelet/kuberuntime/kuberuntime_container_linux_test.go

    		assert.Equal(t, test.expected.CpuShares, linuxConfig.GetResources().CpuShares, test.name)
    		assert.Equal(t, test.expected.MemoryLimitInBytes, linuxConfig.GetResources().MemoryLimitInBytes, test.name)
    	}
    }
    
    func TestCalculateLinuxResources(t *testing.T) {
    	_, _, m, err := createTestRuntimeManager()
    	m.cpuCFSQuota = true
    
    	assert.NoError(t, err)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 41K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/kuberuntime_container_linux.go

    			if milliCPU > 0 {
    				cpuRequest = resource.NewMilliQuantity(milliCPU, resource.DecimalSI)
    			}
    		}
    		if runtimeStatusResources.MemoryLimitInBytes > 0 {
    			memLimit = resource.NewQuantity(runtimeStatusResources.MemoryLimitInBytes, resource.BinarySI)
    		}
    		if cpuLimit != nil || memLimit != nil || cpuRequest != nil {
    			cStatusResources = &kubecontainer.ContainerResources{
    				CPULimit:    cpuLimit,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/kuberuntime_container_test.go

    								CpuMaximum:         2500,
    								CpuCount:           1,
    								MemoryLimitInBytes: 524288000,
    							},
    						}
    					}
    					return &runtimeapi.ContainerResources{
    						Linux: &runtimeapi.LinuxContainerResources{
    							CpuQuota:           25000,
    							CpuPeriod:          100000,
    							MemoryLimitInBytes: 524288000,
    							OomScoreAdj:        -998,
    						},
    					}
    				}(),
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 28K bytes
    - Viewed (0)
Back to top