Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for oom_score_adj (0.49 sec)

  1. pkg/kubelet/cm/container_manager_linux.go

    	klog.V(5).InfoS("Attempting to apply oom_score_adj to process", "oomScoreAdj", oomScoreAdj, "pid", pid)
    	if err := oomAdjuster.ApplyOOMScoreAdj(pid, oomScoreAdj); err != nil {
    		klog.V(3).InfoS("Failed to apply oom_score_adj to process", "oomScoreAdj", oomScoreAdj, "pid", pid, "err", err)
    		errs = append(errs, fmt.Errorf("failed to apply oom score %d to PID %d: %v", oomScoreAdj, pid, err))
    	}
    	return utilerrors.NewAggregate(errs)
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/kuberuntime_container_linux_test.go

    			[]v1.ContainerStatus{},
    			&runtimeapi.LinuxContainerResources{CpuShares: 256, MemoryLimitInBytes: 786432000, OomScoreAdj: 970},
    		},
    		{
    			"best-effort qos - no container status",
    			true,
    			nil,
    			nil,
    			[]v1.ContainerStatus{},
    			&runtimeapi.LinuxContainerResources{CpuShares: 2, OomScoreAdj: 1000},
    		},
    		{
    			"requests & limits, cpu & memory, guaranteed qos - empty resources container status",
    			true,
    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/proxy/apis/config/validation/validation.go

    	allErrs = append(allErrs, validateClientConnectionConfiguration(config.ClientConnection, newPath.Child("ClientConnection"))...)
    
    	if config.OOMScoreAdj != nil && (*config.OOMScoreAdj < -1000 || *config.OOMScoreAdj > 1000) {
    		allErrs = append(allErrs, field.Invalid(newPath.Child("OOMScoreAdj"), *config.OOMScoreAdj, "must be within the range [-1000, 1000]"))
    	}
    
    	if config.ConfigSyncPeriod.Duration <= 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  4. pkg/kubelet/apis/config/validation/validation.go

    	}
    	if utilvalidation.IsInRange(int(kc.OOMScoreAdj), -1000, 1000) != nil {
    		allErrors = append(allErrors, fmt.Errorf("invalid configuration: oomScoreAdj (--oom-score-adj) %v must be between -1000 and 1000, inclusive", kc.OOMScoreAdj))
    	}
    	if kc.PodsPerCore < 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 17:13:59 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  5. pkg/proxy/apis/config/types.go

    	// object. If unset, NodePort connections will be accepted on all local IPs.
    	NodePortAddresses []string
    
    	// oomScoreAdj is the oom-score-adj value for kube-proxy process. Values must be within
    	// the range [-1000, 1000]
    	OOMScoreAdj *int32
    	// conntrack contains conntrack-related configuration options.
    	Conntrack KubeProxyConntrackConfiguration
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 13K bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/kuberuntime_container_test.go

    					return &runtimeapi.ContainerResources{
    						Linux: &runtimeapi.LinuxContainerResources{
    							CpuQuota:           25000,
    							CpuPeriod:          100000,
    							MemoryLimitInBytes: 524288000,
    							OomScoreAdj:        -998,
    						},
    					}
    				}(),
    			},
    			expected: &kubecontainer.Status{
    				ID:        *cid,
    				Image:     imageSpec.Image,
    				State:     kubecontainer.ContainerStateRunning,
    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/apis/config/helpers_test.go

    		"MaxPods",
    		"MemoryManagerPolicy",
    		"MemorySwap.SwapBehavior",
    		"NodeLeaseDurationSeconds",
    		"NodeStatusMaxImages",
    		"NodeStatusUpdateFrequency.Duration",
    		"NodeStatusReportFrequency.Duration",
    		"OOMScoreAdj",
    		"PodCIDR",
    		"PodPidsLimit",
    		"PodsPerCore",
    		"Port",
    		"ProtectKernelDefaults",
    		"ProviderID",
    		"ReadOnlyPort",
    		"RegisterNode",
    		"RegistryBurst",
    		"RegistryPullQPS",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  8. cmd/kube-proxy/app/server.go

    	fs.Int32Var(o.config.OOMScoreAdj, "oom-score-adj", ptr.Deref(o.config.OOMScoreAdj, int32(qos.KubeProxyOOMScoreAdj)), "The oom-score-adj value for kube-proxy process. Values must be within the range [-1000, 1000]. This parameter is ignored if a config file is specified by --config.")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 13:27:41 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  9. cmd/kube-proxy/app/server_test.go

        - "10.20.30.40/16"
        - "fd00:1::0/64"
    nftables:
      masqueradeAll: true
      masqueradeBit: 18
      minSyncPeriod: 10s
      syncPeriod: 60s
    kind: KubeProxyConfiguration
    metricsBindAddress: "%s"
    mode: "%s"
    oomScoreAdj: 17
    portRange: "2-7"
    detectLocalMode: "ClusterCIDR"
    detectLocal:
      bridgeInterface: "cbr0"
      interfaceNamePrefix: "veth"
    nodePortAddresses:
      - "10.20.30.40/16"
      - "fd00:1::0/64"
    `
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/kuberuntime_container_linux.go

    		cpuRequest = container.Resources.Requests.Cpu()
    	}
    	lcr := m.calculateLinuxResources(cpuRequest, container.Resources.Limits.Cpu(), container.Resources.Limits.Memory())
    
    	lcr.OomScoreAdj = int64(qos.GetContainerOOMScoreAdjust(pod, container,
    		int64(m.machineInfo.MemoryCapacity)))
    
    	lcr.HugepageLimits = GetHugepageLimitsFromResources(container.Resources)
    
    	// Configure swap for the container
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 17.2K bytes
    - Viewed (0)
Back to top