Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for memoryUsage (0.6 sec)

  1. 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)
  2. 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