cmd

package
v0.0.0-...-dd2698c Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshallObject

func MarshallObject(obj interface{}, writer io.Writer) error

MarshallObject mashals an object, usually a CSV into YAML

func NewRootCommand

func NewRootCommand() *cobra.Command

NewRootCommand returns entrypoint command to interact with all other commands

Types

type ClusterData

ClusterData collects the cluster wide information, each mcp points to a list of ghw node handlers

type ClusterInfo

type ClusterInfo []MCPInfo

ClusterInfo describe a cluster

func (ClusterInfo) Sort

func (cInfo ClusterInfo) Sort() ClusterInfo

Sort ensures all sequences in the ClusterInfo are sorted, to make comparisons easier.

type MCPInfo

type MCPInfo struct {
	Name  string     `json:"name"`
	Nodes []NodeInfo `json:"nodes"`
}

MCPInfo describe a MCP in a cluster

type NUMACellInfo

type NUMACellInfo struct {
	ID       int   `json:"id"`
	CoreList []int `json:"cores"`
}

NUMACellInfo describe a NUMA cell on a node

type NodeInfo

type NodeInfo struct {
	Name      string         `json:"name"`
	HTEnabled bool           `json:"smt_enabled"`
	CPUsCount int            `json:"cpus_count"`
	NUMACells []NUMACellInfo `json:"numa_cells"`
}

NodeInfo describe a Node in a MCP

type ProfileCreatorArgs

type ProfileCreatorArgs struct {
	PowerConsumptionMode        string `json:"power-consumption-mode"`
	MustGatherDirPath           string `json:"must-gather-dir-path"`
	ProfileName                 string `json:"profile-name"`
	ReservedCPUCount            int    `json:"reserved-cpu-count"`
	OfflinedCPUCount            int    `json:"offlined-cpu-count"`
	SplitReservedCPUsAcrossNUMA bool   `json:"split-reserved-cpus-across-numa"`
	DisableHT                   bool   `json:"disable-ht"`
	RTKernel                    bool   `json:"rt-kernel"`
	UserLevelNetworking         *bool  `json:"user-level-networking,omitempty"`
	MCPName                     string `json:"mcp-name"`
	TMPolicy                    string `json:"topology-manager-policy"`
	Info                        string `json:"info"`
	PerPodPowerManagement       *bool  `json:"per-pod-power-management,omitempty"`
	EnableHardwareTuning        bool   `json:"enable-hardware-tuning,omitempty"`
}

ProfileCreatorArgs represents the arguments passed to the ProfileCreator

type ProfileData

type ProfileData struct {
	// contains filtered or unexported fields
}

ProfileData collects and stores all the data needed for profile creation

Jump to

Keyboard shortcuts

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