Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for ioStats (0.27 sec)

  1. cmd/metrics-v3-cache.go

    	}
    }
    
    func getDriveIOStatMetrics(ioStats madmin.DiskIOStats, duration time.Duration) (m driveIOStatMetrics) {
    	durationSecs := duration.Seconds()
    
    	m.readsPerSec = float64(ioStats.ReadIOs) / durationSecs
    	m.readsKBPerSec = float64(ioStats.ReadSectors) * float64(sectorSize) / kib / durationSecs
    	if ioStats.ReadIOs > 0 {
    		m.readsAwait = float64(ioStats.ReadTicks) / float64(ioStats.ReadIOs)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 23:56:12 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  2. internal/disk/stat_linux.go

    func GetDriveStats(major, minor uint32) (iostats IOStats, err error) {
    	return readDriveStats(fmt.Sprintf("/sys/dev/block/%v:%v/stat", major, minor))
    }
    
    func readDriveStats(statsFile string) (iostats IOStats, err error) {
    	stats, err := readStat(statsFile)
    	if err != nil {
    		return IOStats{}, err
    	}
    	if len(stats) < 11 {
    		return IOStats{}, fmt.Errorf("found invalid format while reading %v", statsFile)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  3. internal/disk/stat_linux_32bit.go

    	}
    	info.Used = info.Total - info.Free
    	return info, nil
    }
    
    // GetDriveStats returns IO stats of the drive by its major:minor
    func GetDriveStats(major, minor uint32) (iostats IOStats, err error) {
    	return IOStats{}, errors.New("operation unsupported")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  4. cmd/metrics-v3-system-drive.go

    func (m *MetricValues) setDriveIOStatMetrics(ioStats driveIOStatMetrics, labels []string) {
    	m.Set(driveReadsPerSec, ioStats.readsPerSec, labels...)
    	m.Set(driveReadsKBPerSec, ioStats.readsKBPerSec, labels...)
    	if ioStats.readsPerSec > 0 {
    		m.Set(driveReadsAwait, ioStats.readsAwait, labels...)
    	}
    
    	m.Set(driveWritesPerSec, ioStats.writesPerSec, labels...)
    	m.Set(driveWritesKBPerSec, ioStats.writesKBPerSec, labels...)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  5. internal/disk/stat_netbsd.go

    	}
    	info.Used = info.Total - info.Free
    	return info, nil
    }
    
    // GetDriveStats returns IO stats of the drive by its major:minor
    func GetDriveStats(major, minor uint32) (iostats IOStats, err error) {
    	return IOStats{}, errors.New("operation unsupported")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  6. internal/disk/stat_openbsd.go

    	}
    	info.Used = info.Total - info.Free
    	return info, nil
    }
    
    // GetDriveStats returns IO stats of the drive by its major:minor
    func GetDriveStats(major, minor uint32) (iostats IOStats, err error) {
    	return IOStats{}, errors.New("operation unsupported")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  7. internal/disk/stat_bsd.go

    	}
    	info.Used = info.Total - info.Free
    	return info, nil
    }
    
    // GetDriveStats returns IO stats of the drive by its major:minor
    func GetDriveStats(major, minor uint32) (iostats IOStats, err error) {
    	return IOStats{}, errors.New("operation unsupported")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  8. internal/disk/stat_solaris.go

    	}
    	info.Used = info.Total - info.Free
    	return info, nil
    }
    
    // GetDriveStats returns IO stats of the drive by its major:minor
    func GetDriveStats(major, minor uint32) (iostats IOStats, err error) {
    	return IOStats{}, errors.New("operation unsupported")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  9. internal/disk/stat_test.go

    				t.Fatalf("unexpected err; %v", err)
    			}
    			if testCase.expectErr && err == nil {
    				t.Fatal("expected to fail but err is nil")
    			}
    			if !reflect.DeepEqual(iostats, testCase.expectedIOStats) {
    				t.Fatalf("expected iostats: %v but got %v", testCase.expectedIOStats, iostats)
    			}
    		})
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  10. internal/disk/stat_windows.go

    	info.Ffree = uint64(lpNumberOfFreeClusters)
    
    	return info, nil
    }
    
    // GetDriveStats returns IO stats of the drive by its major:minor
    func GetDriveStats(major, minor uint32) (iostats IOStats, err error) {
    	return IOStats{}, errors.New("operation unsupported")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.1K bytes
    - Viewed (0)
Back to top