rdt

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0, BSD-3-Clause, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllocateLLC

func AllocateLLC()

TODO

func InitRdtCommand

func InitRdtCommand(rdtCmd string) error

InitRdtCommand init rdt command

func MonitorReset

func MonitorReset() error

MonitorReset reset rdt

Types

type RdtData

type RdtData struct {
	Cores     string
	IPC       float64
	Missees   float64
	LLC       float64
	MBL       float64
	MBR       float64
	Timestamp time.Time
}

RdtData implements data collected from rdt tool

func StaticMonitor

func StaticMonitor(monitors []string, monInterval, monTime time.Duration) ([]RdtData, error)

StaticMonitor monitor for the static duration, and output results monitors format, such as: all:[0,2,4-10] or all:0,2,4 if input like all:[0,2], will output:

CORE         IPC      MISSES     LLC[KB]   MBL[MB/s]   MBR[MB/s]
  0,2        0.55         12k     36176.0        47.8      1463.1

or will output

CORE         IPC      MISSES     LLC[KB]   MBL[MB/s]   MBR[MB/s]
 0        0.55         12k     36176.0        47.8      1463.1
 2        0.55         12k     36176.0        47.8      1463.1

type RdtFeature

type RdtFeature struct {
	MonitorLLC       bool
	MonitorMBM       bool
	MonitorIPC       bool
	MonitorCacheMiss bool
	AllocateCAT      bool
}

RdtFeature show which feature supported

func SupportRdtFunction

func SupportRdtFunction() *RdtFeature

SupportRdtFunction check which feature supported

Jump to

Keyboard shortcuts

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