Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 55 for minCodes (0.16 sec)

  1. pkg/kubelet/stats/cadvisor_stats_provider.go

    		InodesFree:     imageFsInfo.InodesFree,
    		Inodes:         imageFsInfo.Inodes,
    		InodesUsed:     imageFsInodesUsed,
    	}
    	if !splitFileSystem {
    		return fsStats, fsStats, nil
    	}
    
    	containerFs := imageStats.ContainerFilesystems[0]
    	var containerFsInodesUsed *uint64
    	if containerFsInfo.Inodes != nil && containerFsInfo.InodesFree != nil {
    		containerFsIU := *containerFsInfo.Inodes - *containerFsInfo.InodesFree
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 16 13:34:22 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  2. pkg/kubelet/server/stats/volume_stat_calculator.go

    	var (
    		available, capacity, used, inodes, inodesFree, inodesUsed uint64
    	)
    
    	if metric.Available != nil {
    		available = uint64(metric.Available.Value())
    	}
    	if metric.Capacity != nil {
    		capacity = uint64(metric.Capacity.Value())
    	}
    	if metric.Used != nil {
    		used = uint64(metric.Used.Value())
    	}
    	if metric.Inodes != nil {
    		inodes = uint64(metric.Inodes.Value())
    	}
    	if metric.InodesFree != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 29 00:55:10 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  3. pkg/kubelet/stats/provider.go

    	rootFsInfo, err := p.cadvisor.RootFsInfo()
    	if err != nil {
    		return nil, fmt.Errorf("failed to get rootFs info: %v", err)
    	}
    
    	var nodeFsInodesUsed *uint64
    	if rootFsInfo.Inodes != nil && rootFsInfo.InodesFree != nil {
    		nodeFsIU := *rootFsInfo.Inodes - *rootFsInfo.InodesFree
    		nodeFsInodesUsed = &nodeFsIU
    	}
    
    	// Get the root container stats's timestamp, which will be used as the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 13:56:22 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  4. internal/disk/disk.go

    package disk
    
    // Info stat fs struct is container which holds following values
    // Total - total size of the volume / disk
    // Free - free size of the volume / disk
    // Files - total inodes available
    // Ffree - free inodes available
    // FSType - file system type
    // Major - major dev id
    // Minor - minor dev id
    // Devname - device name
    type Info struct {
    	Total      uint64
    	Free       uint64
    	Used       uint64
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. pkg/kubelet/metrics/collectors/volume_stats.go

    		"Maximum number of inodes in the volume",
    		[]string{"namespace", "persistentvolumeclaim"}, nil,
    		metrics.ALPHA, "",
    	)
    	volumeStatsInodesFreeDesc = metrics.NewDesc(
    		metrics.BuildFQName("", kubeletmetrics.KubeletSubsystem, kubeletmetrics.VolumeStatsInodesFreeKey),
    		"Number of free inodes in the volume",
    		[]string{"namespace", "persistentvolumeclaim"}, nil,
    		metrics.ALPHA, "",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. pkg/kubelet/stats/provider_test.go

    		Usage:      uint64(seed + offsetFsUsage),
    		Inodes:     &inodes,
    		InodesFree: &inodesFree,
    	}
    }
    
    func getPodVolumeStats(seed int, volumeName string) statsapi.VolumeStats {
    	availableBytes := uint64(seed + offsetFsAvailable)
    	capacityBytes := uint64(seed + offsetFsCapacity)
    	usedBytes := uint64(seed + offsetFsUsage)
    	inodes := uint64(seed + offsetFsInodes)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 20K bytes
    - Viewed (0)
  7. pkg/volume/util/fs/fs_windows.go

    	procGetDiskFreeSpaceEx = modkernel32.NewProc("GetDiskFreeSpaceExW")
    )
    
    type UsageInfo struct {
    	Bytes  int64
    	Inodes int64
    }
    
    // Info returns (available bytes, byte capacity, byte usage, total inodes, inodes free, inode usage, error)
    // for the filesystem that path resides upon.
    func Info(path string) (int64, int64, int64, int64, int64, int64, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 21 16:25:48 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  8. src/cmd/go/internal/lockedfile/internal/filelock/filelock_fcntl.go

    	if err != nil {
    		return err
    	}
    	ino := fi.Sys().(*syscall.Stat_t).Ino
    
    	mu.Lock()
    	if i, dup := inodes[f]; dup && i != ino {
    		mu.Unlock()
    		return &fs.PathError{
    			Op:   lt.String(),
    			Path: f.Name(),
    			Err:  errors.New("inode for file changed since last Lock or RLock"),
    		}
    	}
    	inodes[f] = ino
    
    	var wait chan File
    	l := locks[ino]
    	if l.owner == f {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 17 02:24:35 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  9. pkg/volume/volume.go

    	// InodesUsed represents the total inodes used by the Volume.
    	InodesUsed *resource.Quantity
    
    	// Inodes represents the total number of inodes available in the volume.
    	// For volumes that share a filesystem with the host (e.g. emptydir, hostpath),
    	// this is the inodes available in the underlying storage,
    	// and will not equal InodesUsed + InodesFree as the fs is shared.
    	Inodes *resource.Quantity
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. pkg/kubelet/eviction/helpers.go

    	inodes := resource.Quantity{Format: resource.DecimalSI}
    	for _, container := range podStats.Containers {
    		if hasFsStatsType(statsToMeasure, fsStatsRoot) {
    			disk.Add(*diskUsage(container.Rootfs))
    			inodes.Add(*inodeUsage(container.Rootfs))
    		}
    		if hasFsStatsType(statsToMeasure, fsStatsLogs) {
    			disk.Add(*diskUsage(container.Logs))
    			inodes.Add(*inodeUsage(container.Logs))
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 53.6K bytes
    - Viewed (0)
Back to top