Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for memoryUsage (0.36 sec)

  1. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/health/gc/GarbageCollectionEvent.java

     */
    
    package org.gradle.launcher.daemon.server.health.gc;
    
    import java.lang.management.MemoryUsage;
    
    public class GarbageCollectionEvent {
        private final long timestamp;
        private final MemoryUsage usage;
        private final long count;
    
        public GarbageCollectionEvent(long timestamp, MemoryUsage usage, long count) {
            this.timestamp = timestamp;
            this.usage = usage;
            this.count = count;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/health/gc/GarbageCollectionStatsTest.groovy

                    new GarbageCollectionEvent(0000, new MemoryUsage(0, 100, 1000, 1000), 1),
                    new GarbageCollectionEvent(1000, new MemoryUsage(0, 250, 1000, 1000), 2),
                    new GarbageCollectionEvent(2000, new MemoryUsage(0, 500, 1000, 1000), 3),
                    new GarbageCollectionEvent(3000, new MemoryUsage(0, 750, 1000, 1000), 6),
                    new GarbageCollectionEvent(4000, new MemoryUsage(0, 900, 1000, 1000), 13)
            ]
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/types.go

    	Pids(name CgroupName) []int
    	// ReduceCPULimits reduces the CPU CFS values to the minimum amount of shares.
    	ReduceCPULimits(cgroupName CgroupName) error
    	// MemoryUsage returns current memory usage of the specified cgroup, as read from the cgroupfs.
    	MemoryUsage(name CgroupName) (int64, error)
    	// Get the resource config values applied to the cgroup for specified resource type
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 24 18:21:21 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/cgroup_manager_unsupported.go

    func (m *unsupportedCgroupManager) Update(_ *CgroupConfig) error {
    	return nil
    }
    
    func (m *unsupportedCgroupManager) Create(_ *CgroupConfig) error {
    	return errNotSupported
    }
    
    func (m *unsupportedCgroupManager) MemoryUsage(_ CgroupName) (int64, error) {
    	return -1, errNotSupported
    }
    
    func (m *unsupportedCgroupManager) Pids(_ CgroupName) []int {
    	return nil
    }
    
    func (m *unsupportedCgroupManager) CgroupName(name string) CgroupName {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 24 18:21:21 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/server/health/gc/GarbageCollectionMonitoringIntegrationTest.groovy

                import org.gradle.launcher.daemon.server.health.DaemonHealthStats
                import org.gradle.internal.time.Clock
                import org.gradle.internal.time.Time
                import java.lang.management.MemoryUsage
            """
        }
    
        String eventInjectionConfiguration(String type, Collection<Map> events, long initial, long max) {
            return """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  6. pkg/kubelet/eviction/helpers.go

    		return &resource.Quantity{Format: resource.DecimalSI}
    	}
    	usage := int64(*fsStats.InodesUsed)
    	return resource.NewQuantity(usage, resource.DecimalSI)
    }
    
    // memoryUsage converts working set into a resource quantity.
    func memoryUsage(memStats *statsapi.MemoryStats) *resource.Quantity {
    	if memStats == nil || memStats.WorkingSetBytes == nil {
    		return &resource.Quantity{Format: resource.BinarySI}
    	}
    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/cm/pod_container_manager_linux.go

    	return cgroupName, cgroupfsName
    }
    
    func (m *podContainerManagerImpl) GetPodCgroupMemoryUsage(pod *v1.Pod) (uint64, error) {
    	podCgroupName, _ := m.GetPodContainerName(pod)
    	memUsage, err := m.cgroupManager.MemoryUsage(podCgroupName)
    	if err != nil {
    		return 0, err
    	}
    	return uint64(memUsage), nil
    }
    
    func (m *podContainerManagerImpl) GetPodCgroupConfig(pod *v1.Pod, resource v1.ResourceName) (*ResourceConfig, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 16:38:36 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/qos_container_manager_linux.go

    	// Attempt to set the limit near the current usage to put pressure
    	// on the cgroup and prevent further growth.
    	for qos, config := range configs {
    		usage, err := m.cgroupManager.MemoryUsage(config.Name)
    		if err != nil {
    			klog.V(2).InfoS("Failed to get resource stats", "err", err)
    			return
    		}
    
    		// Because there is no good way to determine of the original Update()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 20:42:59 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/cgroup_manager_linux.go

    		Name:               cgroupName,
    		ResourceParameters: resources,
    	}
    	return m.Update(containerConfig)
    }
    
    // MemoryUsage returns the current memory usage of the specified cgroup,
    // as read from cgroupfs.
    func (m *cgroupManagerImpl) MemoryUsage(name CgroupName) (int64, error) {
    	var path, file string
    	if libcontainercgroups.IsCgroup2UnifiedMode() {
    		path = m.buildCgroupUnifiedPath(name)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  10. pkg/kubelet/stats/cri_stats_provider_test.go

    	} else {
    		containerStats.Cpu = &runtimeapi.CpuUsage{
    			Timestamp:            time.Now().UnixNano(),
    			UsageCoreNanoSeconds: &runtimeapi.UInt64Value{Value: rand.Uint64()},
    		}
    		containerStats.Memory = &runtimeapi.MemoryUsage{
    			Timestamp:       time.Now().UnixNano(),
    			WorkingSetBytes: &runtimeapi.UInt64Value{Value: rand.Uint64()},
    		}
    	}
    	return containerStats
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 54.5K bytes
    - Viewed (0)
Back to top