fio

package
v0.0.0-...-db53517 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2023 License: MulanPSL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fio

type Fio struct {
	OpType    string `json:"opType"`
	Runtime   int64  `json:"runtime"`
	BlockSize string `json:"blockSize"`
	IoDepth   int64  `json:"ioDepth"`
	Pool      string `json:"pool"`
	RbdName   string `json:"rbdName"`
	BSRange   string `json:"bsrange"`
	NumJobs   int64  `json:"numJobs"`
}

func (*Fio) Config

func (conf *Fio) Config() string

func (*Fio) ConfigFileName

func (conf *Fio) ConfigFileName() string

func (*Fio) Exec

func (conf *Fio) Exec(worker interfacer.Worker) (*FioResult, error)

func (*Fio) ExecOne

func (conf *Fio) ExecOne(worker interfacer.Worker) (*FioResult, error)

type FioResult

type FioResult struct {
	ReadBandwidth float64 `json:"readBandwidth"`
	ReadIops      float64 `json:"readIops"`
	ReadSlat      float64 `json:"readSlat"`
	ReadClat      float64 `json:"readClat"`
	ReadLat       float64 `json:"readLat"`
	ReadClat95    float64 `json:"readClat95"`
	ReadClat99    float64 `json:"readClat99"`

	WriteBandwidth float64 `json:"writeBandwidth"`
	WriteIops      float64 `json:"writeIops"`
	WriteSlat      float64 `json:"writeSlat"`
	WriteClat      float64 `json:"writeClat"`
	WriteLat       float64 `json:"writeLat"`
	WriteClat95    float64 `json:"writeClat95"`
	WriteClat99    float64 `json:"writeClat99"`
}

type FioResultList

type FioResultList []FioResult

func (FioResultList) AvgFioResult

func (l FioResultList) AvgFioResult() FioResult

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL