Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. pkg/kubelet/kuberuntime/kuberuntime_sandbox_linux_test.go

    			pod:         getPodWithOverhead(),
    			expectedResource: &runtimeapi.LinuxContainerResources{
    				MemoryLimitInBytes: 268435456,
    				CpuPeriod:          100000,
    				CpuQuota:           400000,
    				CpuShares:          2048,
    			},
    			expectedOverhead: &runtimeapi.LinuxContainerResources{
    				MemoryLimitInBytes: 134217728,
    				CpuPeriod:          100000,
    				CpuQuota:           100000,
    				CpuShares:          1024,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. 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)
  3. pkg/kubelet/kuberuntime/kuberuntime_container_windows_test.go

    			expected: &runtimeapi.WindowsContainerResources{
    				CpuMaximum:         2500,
    				MemoryLimitInBytes: 134217728,
    			},
    		},
    		{
    			name:   "RequestNoMemory",
    			cpuLim: resource.MustParse("8"),
    			memLim: resource.MustParse("0"),
    			expected: &runtimeapi.WindowsContainerResources{
    				CpuMaximum:         10000,
    				MemoryLimitInBytes: 0,
    			},
    		},
    		{
    			name:   "RequestZeroCPU",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/kuberuntime_container_windows.go

    			cpuLimit = resource.NewMilliQuantity(cpuLimitValue, resource.DecimalSI)
    		}
    
    		if runtimeStatusResources.MemoryLimitInBytes > 0 {
    			memLimit = resource.NewQuantity(runtimeStatusResources.MemoryLimitInBytes, resource.BinarySI)
    		}
    
    		if cpuLimit != nil || memLimit != 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
    - 8K bytes
    - Viewed (0)
  5. 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)
  6. 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