Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getCgroupProcs (0.22 sec)

  1. pkg/kubelet/cm/helpers_unsupported.go

    	return nil
    }
    
    // GetCgroupSubsystems returns information about the mounted cgroup subsystems
    func GetCgroupSubsystems() (*CgroupSubsystems, error) {
    	return nil, nil
    }
    
    func getCgroupProcs(dir string) ([]int, error) {
    	return nil, nil
    }
    
    // GetPodCgroupNameSuffix returns the last element of the pod CgroupName identifier
    func GetPodCgroupNameSuffix(podUID types.UID) string {
    	return ""
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 24 18:21:21 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/helpers_linux.go

    		return getCgroupSubsystemsV2()
    	}
    
    	return getCgroupSubsystemsV1()
    }
    
    // getCgroupProcs takes a cgroup directory name as an argument
    // reads through the cgroup's procs file and returns a list of tgid's.
    // It returns an empty list if a procs file doesn't exists
    func getCgroupProcs(dir string) ([]int, error) {
    	procsFile := filepath.Join(dir, "cgroup.procs")
    	f, err := os.Open(procsFile)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 11:52:28 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/cgroup_manager_linux.go

    		if os.IsNotExist(err) {
    			// The subsystem pod cgroup is already deleted
    			// do nothing, continue
    			continue
    		}
    		// Get a list of pids that are still charged to the pod's cgroup
    		pids, err = getCgroupProcs(dir)
    		if err != nil {
    			continue
    		}
    		pidsToKill.Insert(pids...)
    
    		// WalkFunc which is called for each file and directory in the pod cgroup dir
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 26.5K bytes
    - Viewed (0)
Back to top