controller

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package controller provides the external publication boundary for trace merge benchmarks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PinToCPUs

func PinToCPUs(cpus []int) error

PinToCPUs restricts the current process to the requested logical CPUs.

func ValidateResourceIsolation

func ValidateResourceIsolation(dataNode, externalController ResourceIdentity) error

ValidateResourceIsolation rejects controller resources included in data-node measurements.

Types

type Move

type Move struct {
	Source      string
	Destination string
	SHA256      string
}

Move describes one immutable directory rename.

type PublishReport

type PublishReport struct {
	Moves []PublishedMove
}

PublishReport records all completed moves in manifest order.

func AtomicPublish

func AtomicPublish(moves []Move) (PublishReport, error)

AtomicPublish validates all moves before atomically renaming each directory.

type PublishedMove

type PublishedMove struct {
	Source      string
	Destination string
	Manifest    benchmark.Manifest
}

PublishedMove records one completed atomic rename.

type ResourceIdentity

type ResourceIdentity struct {
	Cgroup string `json:"cgroup"`
	CPUs   []int  `json:"cpus"`
	PID    int    `json:"pid"`
}

ResourceIdentity identifies a process's measured cgroup and CPU affinity.

func CurrentResourceIdentity

func CurrentResourceIdentity(pid int) (ResourceIdentity, error)

CurrentResourceIdentity reads cgroup and CPU affinity for a process.

Jump to

Keyboard shortcuts

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