Documentation
¶
Index ¶
- func IsCATEnabled() bool
- func IsCMTEnabled() bool
- func IsEnabled() bool
- func IsMBAEnabled() bool
- func IsMBMEnabled() bool
- func Root() (string, error)
- func WriteIntelRdtTasks(dir string, pid int) error
- type CMTNumaNodeStats
- type L3CacheInfo
- type MBMNumaNodeStats
- type Manager
- type MemBwInfo
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteIntelRdtTasks ¶
WriteIntelRdtTasks writes the specified pid into the "tasks" file
Types ¶
type CMTNumaNodeStats ¶
type CMTNumaNodeStats struct {
// The 'llc_occupancy' in 'container_id' group.
LLCOccupancy uint64 `json:"llc_occupancy"`
}
type L3CacheInfo ¶
type MBMNumaNodeStats ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
NewManager returns a new instance of Manager, or nil if the Intel RDT functionality is not specified in the config, available from hardware or enabled in the kernel.
func (*Manager) Apply ¶
Apply applies Intel RDT configuration to the process with the specified pid.
func (*Manager) GetMonPath ¶ added in v1.4.0
GetMonPath returns path of the monitoring group of the container. Returns an empty string if the container does not have a individual dedicated monitoring group.
func (*Manager) GetPath ¶
GetPath returns Intel RDT path to save in a state file and to be able to restore the object later.
type Stats ¶
type Stats struct {
// The read-only L3 cache information
L3CacheInfo *L3CacheInfo `json:"l3_cache_info,omitempty"`
// The read-only L3 cache schema in root
L3CacheSchemaRoot string `json:"l3_cache_schema_root,omitempty"`
// The L3 cache schema in 'container_id' group
L3CacheSchema string `json:"l3_cache_schema,omitempty"`
// The read-only memory bandwidth information
MemBwInfo *MemBwInfo `json:"mem_bw_info,omitempty"`
// The read-only memory bandwidth schema in root
MemBwSchemaRoot string `json:"mem_bw_schema_root,omitempty"`
// The memory bandwidth schema in 'container_id' group
MemBwSchema string `json:"mem_bw_schema,omitempty"`
// Schemata contains the full schemata of the ClosID (resctrl group) that the container is assigned to.
Schemata []string `json:"schemata,omitempty"`
// The memory bandwidth monitoring statistics from NUMA nodes in 'container_id' group
MBMStats *[]MBMNumaNodeStats `json:"mbm_stats,omitempty"`
// The cache monitoring technology statistics from NUMA nodes in 'container_id' group
CMTStats *[]CMTNumaNodeStats `json:"cmt_stats,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.