bare_disk

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirectItem

type DirectItem struct {
	Direct     int64        `json:"direct"`
	IOTypeItem []ioTypeItem `json:"ioTypeItem"`
}

type DiskInfo

type DiskInfo struct {
	UserCapacity string `json:"userCapacity"`
	RotationRate string `json:"rotationRate"`
}

type ExecConfig

type ExecConfig struct {
	DirectItem []DirectItem `json:"directItem"`
	Disk       []string     `json:"disk"`
	Runtime    int64        `json:"runtime"`
	TestCount  int64        `json:"testCount"`
	ResultDir  string       `json:"resultDir"`
}

func NewExecConfig

func NewExecConfig(configPath string) (*ExecConfig, error)

func (*ExecConfig) ReadConfig

func (execConfig *ExecConfig) ReadConfig(configFilePath string) error

func (*ExecConfig) Run

func (execConfig *ExecConfig) Run() (*[]JobResult, error)

func (*ExecConfig) RunOneDisk

func (execConfig *ExecConfig) RunOneDisk(jobItem JobItem) ([]JobResult, error)

func (*ExecConfig) RunOneJob

func (execConfig *ExecConfig) RunOneJob(item JobItem) (JobResult, error)

type JobConfig

type JobConfig struct {
	DiskName string `json:"diskName"`
	Count    int64  `json:"count"`
}

type JobItem

type JobItem struct {
	Disk      string `json:"disk"`
	BlockSize string `json:"blockSize"`
	Direct    int64  `json:"direct"`
	IOType    string `json:"ioType"`
	Numjob    int64  `json:"numjobs"`
	Iodepth   int64  `json:"iodepth"`
}

type JobResult

type JobResult struct {
	JobConfig JobConfig     `json:"jobConfig"`
	DiskInfo  DiskInfo      `json:"diskInfo"`
	JobItem   JobItem       `json:"jobItem"`
	FioResult fio.FioResult `json:"fioResult"`
}

Jump to

Keyboard shortcuts

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