spc1

package
Version: v0.0.0-...-dce4763 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2015 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Overview

Copyright (c) 2014 The goioworkload Authors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Spc1Init

func Spc1Init(bsus, contexts int,
	asu1size, asu2size, asu3size uint32) error

bsus: Number of BSUs contexts: Number of contexts asuXsize: Size in 4k blocks

Types

type Spc1Io

type Spc1Io struct {
	// Which asu?
	Asu uint32

	// Read or write
	Isread bool

	// Length of transfer in units of 4KB
	Blocks uint32

	// Which stream in the bsu
	Stream uint32

	// Offset in units of 4KB
	Offset uint32

	// When to do this I/O from the start of the run
	When time.Duration
	// contains filtered or unexported fields
}

func NewSpc1Io

func NewSpc1Io(context int) *Spc1Io

Must have called Spc1Init() to initalize the workload generator

func (*Spc1Io) Generate

func (s *Spc1Io) Generate() error

func (*Spc1Io) Invariant

func (s *Spc1Io) Invariant() bool

Invariant interface from godbc

func (*Spc1Io) String

func (s *Spc1Io) String() string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL