Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for processStatus (0.34 sec)

  1. src/os/exec.go

    	// handle, so acquire may fail, indicating the reason.
    	modeHandle
    )
    
    type processStatus uint64
    
    const (
    	// PID/handle OK to use.
    	statusOK processStatus = 0
    
    	// statusDone indicates that the PID/handle should not be used because
    	// the process is done (has been successfully Wait'd on).
    	statusDone processStatus = 1 << 62
    
    	// statusReleased indicates that the PID/handle should not be used
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  2. src/os/export_linux_test.go

    	PollSpliceFile      = &pollSplice
    	GetPollFDAndNetwork = getPollFDAndNetwork
    	CheckPidfdOnce      = checkPidfdOnce
    )
    
    const StatusDone = statusDone
    
    func (p *Process) Status() processStatus {
    	return processStatus(p.state.Load() & processStatusMask)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 473 bytes
    - Viewed (0)
  3. pkg/kubelet/stats/cri_stats_provider_linux.go

    	}
    }
    
    func addCRIPodProcessStats(ps *statsapi.PodStats, criPodStat *runtimeapi.PodSandboxStats) {
    	if criPodStat == nil || criPodStat.Linux == nil || criPodStat.Linux.Process == nil {
    		return
    	}
    	ps.ProcessStats = &statsapi.ProcessStats{
    		ProcessCount: valueOfUInt64Value(criPodStat.Linux.Process.ProcessCount),
    	}
    }
    
    // listContainerNetworkStats returns the network stats of all the running containers.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 16 11:09:04 UTC 2023
    - 4K bytes
    - Viewed (0)
  4. pkg/kubelet/stats/cri_stats_provider_windows.go

    }
    
    func addCRIPodProcessStats(ps *statsapi.PodStats, criPodStat *runtimeapi.PodSandboxStats) {
    	if criPodStat == nil || criPodStat.Windows == nil || criPodStat.Windows.Process == nil {
    		return
    	}
    	ps.ProcessStats = &statsapi.ProcessStats{
    		ProcessCount: valueOfUInt64Value(criPodStat.Windows.Process.ProcessCount),
    	}
    }
    
    func addCRIPodNetworkStats(ps *statsapi.PodStats, criPodStat *runtimeapi.PodSandboxStats) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 07:03:11 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. pkg/kubelet/stats/helper.go

    	return result
    }
    
    func cadvisorInfoToProcessStats(info *cadvisorapiv2.ContainerInfo) *statsapi.ProcessStats {
    	cstat, found := latestContainerStats(info)
    	if !found || cstat.Processes == nil {
    		return nil
    	}
    	num := cstat.Processes.ProcessCount
    	return &statsapi.ProcessStats{ProcessCount: uint64Ptr(num)}
    }
    
    // cadvisorInfoToNetworkStats returns the statsapi.NetworkStats converted from
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 17 23:40:02 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  6. pkg/kubelet/eviction/helpers.go

    	return resource.NewQuantity(usage, resource.BinarySI)
    }
    
    // processUsage converts working set into a process count.
    func processUsage(processStats *statsapi.ProcessStats) uint64 {
    	if processStats == nil || processStats.ProcessCount == nil {
    		return 0
    	}
    	usage := uint64(*processStats.ProcessCount)
    	return usage
    }
    
    // localVolumeNames returns the set of volumes for the pod that are local
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 53.6K bytes
    - Viewed (0)
  7. pkg/kubelet/stats/cadvisor_stats_provider.go

    		if podInfo != nil {
    			cpu, memory := cadvisorInfoToCPUandMemoryStats(podInfo)
    			podStats.CPU = cpu
    			podStats.Memory = memory
    			podStats.Swap = cadvisorInfoToSwapStats(podInfo)
    			podStats.ProcessStats = cadvisorInfoToProcessStats(podInfo)
    		}
    
    		status, found := p.statusProvider.GetPodStatus(podUID)
    		if found && status.StartTime != nil && !status.StartTime.IsZero() {
    			podStats.StartTime = *status.StartTime
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 16 13:34:22 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  8. pkg/kubelet/stats/cri_stats_provider.go

    	allInfos map[string]cadvisorapiv2.ContainerInfo,
    	cs *statsapi.ContainerStats,
    ) {
    	// try get process stats from cadvisor only.
    	info := getCadvisorPodInfoFromPodUID(podUID, allInfos)
    	if info != nil {
    		ps.ProcessStats = cadvisorInfoToProcessStats(info)
    		return
    	}
    }
    
    func (p *criStatsProvider) makeContainerStats(
    	stats *runtimeapi.ContainerStats,
    	container *runtimeapi.Container,
    	rootFsInfo *cadvisorapiv2.FsInfo,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  9. pkg/kubelet/eviction/helpers_test.go

    func newPodProcessStats(pod *v1.Pod, num uint64) statsapi.PodStats {
    	return statsapi.PodStats{
    		PodRef: statsapi.PodReference{
    			Name: pod.Name, Namespace: pod.Namespace, UID: string(pod.UID),
    		},
    		ProcessStats: &statsapi.ProcessStats{
    			ProcessCount: &num,
    		},
    	}
    }
    
    func newResourceList(cpu, memory, disk string) v1.ResourceList {
    	res := v1.ResourceList{}
    	if cpu != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 106.7K bytes
    - Viewed (0)
Back to top