fsbench

package
v0.0.0-...-d8f7d12 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BUFLEN      = 1024 * 1024
	MAX_TO_READ = 1024 * 1024 * 128
)

Variables

This section is empty.

Functions

func GetDevnumForFile

func GetDevnumForFile(name string) (devnum uint64, err error)

func GetReadSpeed

func GetReadSpeed(name string) (uint64, uint64, error)

Compute the maximum read speed of a block device, given a file within a file-system mounted on the block device. Returns: bytesPerSecond, blocksPerSecond, error If I/O accounting is enabled, blocksPerSecond will be non-zero.

Types

This section is empty.

Jump to

Keyboard shortcuts

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