Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 116 for colgroup (0.18 sec)

  1. cni/pkg/nodeagent/podcgroupns_test.go

    	}
    }
    
    // copied and modified from spire
    
    func TestGetContainerIDFromCGroups(t *testing.T) {
    	makeCGroups := func(groupPaths []string) []Cgroup {
    		var out []Cgroup
    		for _, groupPath := range groupPaths {
    			out = append(out, Cgroup{
    				GroupPath: groupPath,
    			})
    		}
    		return out
    	}
    
    	//nolint: lll
    	for _, tt := range []struct {
    		name              string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 21:47:31 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. pkg/util/oom/oom_linux.go

    	if err != nil {
    		klog.V(2).Infof("failed to set %q to %q: %v", oomScoreAdjPath, value, err)
    	}
    	return err
    }
    
    // Writes 'value' to /proc/<pid>/oom_score_adj for all processes in cgroup cgroupName.
    // Keeps trying to write until the process list of the cgroup stabilizes, or until maxTries tries.
    func (oomAdjuster *OOMAdjuster) applyOOMScoreAdjContainer(cgroupName string, oomScoreAdj, maxTries int) error {
    	adjustedProcessSet := make(map[int]bool)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 07:13:28 UTC 2022
    - 4K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/helpers_linux.go

    // getCgroupSubsystemsV1 returns information about the mounted cgroup v1 subsystems
    func getCgroupSubsystemsV1() (*CgroupSubsystems, error) {
    	// get all cgroup mounts.
    	allCgroups, err := libcontainercgroups.GetCgroupMounts(true)
    	if err != nil {
    		return &CgroupSubsystems{}, err
    	}
    	if len(allCgroups) == 0 {
    		return &CgroupSubsystems{}, fmt.Errorf("failed to find cgroup mounts")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 11:52:28 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  4. pkg/kubelet/eviction/memory_threshold_notifier.go

    		return nil, err
    	}
    	cgpath, found := cgroups.MountPoints["memory"]
    	if !found || len(cgpath) == 0 {
    		return nil, fmt.Errorf("memory cgroup mount point not found")
    	}
    	if isAllocatableEvictionThreshold(threshold) {
    		// for allocatable thresholds, point the cgroup notifier at the allocatable cgroup
    		cgpath += cgroupRoot
    	}
    	return &memoryThresholdNotifier{
    		threshold:  threshold,
    		cgroupPath: cgpath,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 21 00:36:14 UTC 2021
    - 4.7K bytes
    - Viewed (0)
  5. pkg/kubelet/eviction/threshold_notifier_linux.go

    // NewCgroupNotifier returns a linuxCgroupNotifier, which performs cgroup control operations required
    // to receive notifications from the cgroup when the threshold is crossed in either direction.
    func NewCgroupNotifier(path, attribute string, threshold int64) (CgroupNotifier, error) {
    	// cgroupv2 does not support monitoring cgroup memory thresholds using cgroup.event_control.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 01 21:59:54 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/accessors/PluginDependencySpecAccessorsTest.kt

                                pluginDependenciesSpecTypeSpec,
                                pluginDependencySpecTypeSpec
                            )
                        ),
                        PluginDependencySpecAccessor.ForGroup(
                            "my",
                            ExtensionSpec(
                                "my",
                                pluginDependenciesSpecTypeSpec,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  7. platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/CGroupMemoryInfo.java

    import java.io.IOException;
    import java.nio.charset.Charset;
    
    public class CGroupMemoryInfo implements OsMemoryInfo {
        private static final String CGROUP_MEM_USAGE_FILE = "/sys/fs/cgroup/memory/memory.usage_in_bytes";
        private static final String CGROUP_MEM_TOTAL_FILE = "/sys/fs/cgroup/memory/memory.limit_in_bytes";
    
        @Override
        public OsMemoryStatus getOsSnapshot() {
            String memUsageString = readStringFromFile(new File(CGROUP_MEM_USAGE_FILE));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  8. build-logic/lifecycle/src/main/kotlin/gradlebuild.lifecycle.gradle.kts

     * limitations under the License.
     */
    
    import gradlebuild.basics.BuildEnvironment
    import java.time.Duration
    
    // Lifecycle tasks used to fan out the build into multiple builds in a CI pipeline.
    
    val ciGroup = "CI Lifecycle"
    
    val compileAllBuild = "compileAllBuild"
    
    val sanityCheck = "sanityCheck"
    
    val quickTest = "quickTest"
    
    val platformTest = "platformTest"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 14:39:09 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. pkg/util/procfs/procfs_linux.go

    		}
    	}
    	return "", fmt.Errorf("could not find devices cgroup location")
    }
    
    // GetFullContainerName gets the container name given the root process id of the container.
    // E.g. if the devices cgroup for the container is stored in /sys/fs/cgroup/devices/docker/nginx,
    // return docker/nginx. Assumes that the process is part of exactly one cgroup hierarchy.
    func (pfs *ProcFS) GetFullContainerName(pid int) (string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 16 09:22:35 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  10. src/syscall/exec_linux_test.go

    	// Otherwise it's either cgroup v1 or a hybrid hierarchy.
    	if bytes.Count(selfCg, []byte("\n")) > 1 {
    		t.Skip("cgroup v2 not available")
    	}
    	cg := bytes.TrimPrefix(selfCg, []byte("0::"))
    	if len(cg) == len(selfCg) { // No prefix found.
    		t.Skipf("cgroup v2 not available (/proc/self/cgroup contents: %q)", selfCg)
    	}
    
    	// Need an ability to create a sub-cgroup.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 20.6K bytes
    - Viewed (0)
Back to top