power_manager

package module
v0.0.0-...-7a214e9 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SpinningURL               = "spinning-go.default.192.168.1.240.sslip.io"
	SleepingURL               = "sleeping-go.default.192.168.1.240.sslip.io"
	AesURL                    = "aes-python.default.192.168.1.240.sslip.io"
	AuthURL                   = "auth-python.default.192.168.1.240.sslip.io"
	Node1Name                 = "node-1.kt-cluster.ntu-cloud-pg0.utah.cloudlab.us" // to be replaced by your node name
	Node2Name                 = "node-2.kt-cluster.ntu-cloud-pg0.utah.cloudlab.us" // to be replaced by your node name
	HighFrequencyPowerProfile = "performance"
	LowFrequencyPowerProfile  = "shared"
)

Functions

func GetDataAtPercentile

func GetDataAtPercentile(data []int64, percentile float64) int64

func Invoke

func Invoke(url string) (int64, int64, int64, error)

func InvokeConcurrently

func InvokeConcurrently(n int, url string, ch chan<- []string, ch_latency_spinning chan<- int64, ch_latency_sleeping chan<- int64, spinning bool)

func SetPowerProfileToNode

func SetPowerProfileToNode(powerprofileName string, nodeName string, freq int64) error

func WriteToCSV

func WriteToCSV(writer *csv.Writer, ch <-chan []string, wg *sync.WaitGroup)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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