Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 38 of 38 for colgroup (0.23 sec)

  1. pkg/kubelet/kuberuntime/kuberuntime_container_linux_test.go

    			if !cmp.Equal(resources, tc.expected) {
    				t.Errorf("Test %s: expected resources %+v, but got %+v", tc.name, tc.expected, resources)
    			}
    		})
    	}
    	//TODO(vinaykul,InPlacePodVerticalScaling): Add unit tests for cgroup v1 & v2
    }
    
    func TestGenerateLinuxContainerResourcesWithSwap(t *testing.T) {
    	_, _, m, err := createTestRuntimeManager()
    	assert.NoError(t, err)
    	m.machineInfo.MemoryCapacity = 42949672960 // 40Gb == 40 * 1024^3
    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/features/kube_features.go

    	// owner: @marquiz
    	// kep: http://kep.k8s.io/4033
    	// alpha: v1.28
    	//
    	// Enable detection of the kubelet cgroup driver configuration option from
    	// the CRI.  The CRI runtime also needs to support this feature in which
    	// case the kubelet will ignore the cgroupDriver (--cgroup-driver)
    	// configuration option. If runtime doesn't support it, the kubelet will
    	// fallback to using it's cgroupDriver option.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 22:51:23 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  3. pkg/volume/emptydir/empty_dir.go

    	sizeLimit = nodeAllocatableMemory
    	zero := resource.MustParse("0")
    
    	// determine pod resource allocation
    	// we use the same function for pod cgroup assignment to maintain consistent behavior
    	// NOTE: this could be nil on systems that do not support pod memory containment (i.e. windows)
    	podResourceConfig := cm.ResourceConfigForPod(pod, false, uint64(100000), false)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. pkg/kubelet/stats/cadvisor_stats_provider_test.go

    	// NOTE: on Windows, IsSystemdStyleName will return false, which means that the Container Info will
    	// not be assembled by cgroup key.
    	if runtime.GOOS != "windows" {
    		expectedInfoKeys = append(expectedInfoKeys, "c1")
    	} else {
    		expectedInfoKeys = append(expectedInfoKeys, "pod1-c1.slice")
    	}
    	for _, c := range expectedInfoKeys {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  5. pkg/kubelet/container/runtime.go

    	HostIP string
    }
    
    // DeviceInfo contains information about the device.
    type DeviceInfo struct {
    	// Path on host for mapping
    	PathOnHost string
    	// Path in Container to map
    	PathInContainer string
    	// Cgroup permissions
    	Permissions string
    }
    
    // CDIDevice contains information about CDI device
    type CDIDevice struct {
    	// Name is a fully qualified device name
    	Name string
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  6. pkg/kubelet/server/server.go

    			namespace = v
    		}
    		if v, ok := c.Spec.Labels[kubelettypes.KubernetesContainerNameLabel]; ok {
    			containerName = v
    		}
    		// Associate pod cgroup with pod so we have an accurate accounting of sandbox
    		if podName == "" && namespace == "" {
    			if pod, found := s.GetPodByCgroupfs(c.Name); found {
    				podName = pod.Name
    				namespace = pod.Namespace
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 40.1K bytes
    - Viewed (0)
  7. pkg/kubelet/stats/cri_stats_provider.go

    	filteredInfos, cinfosByPodCgroupKey := filterTerminatedContainerInfoAndAssembleByPodCgroupKey(infos)
    	for key, info := range filteredInfos {
    		// On systemd using devicemapper each mount into the container has an
    		// associated cgroup. We ignore them to ensure we do not get duplicate
    		// entries in our summary. For details on .mount units:
    		// http://man7.org/linux/man-pages/man5/systemd.mount.5.html
    		if strings.HasSuffix(key, ".mount") {
    			continue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/preflight/checks.go

    	}
    	if err := scanner.Err(); err != nil {
    		return []error{errors.Wrap(err, "error parsing /proc/swaps")}, nil
    	}
    
    	if len(buf) > 1 {
    		return []error{errors.New("swap is supported for cgroup v2 only. " +
    			"The kubelet must be properly configured to use swap. Please refer to https://kubernetes.io/docs/concepts/architecture/nodes/#swap-memory, " +
    			"or disable swap on the node")}, nil
    	}
    
    	return nil, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 11:20:55 UTC 2024
    - 39.5K bytes
    - Viewed (0)
Back to top