Documentation ¶
Index ¶
- Constants
- func GetIntelRdtPath(id string) (string, error)
- func IsCATEnabled() bool
- func IsCMTEnabled() bool
- func IsMBAEnabled() bool
- func IsMBAScEnabled() bool
- func IsMBMEnabled() bool
- func IsNotFound(err error) bool
- func NewLastCmdError(err error) error
- func NewNotFoundError(res string) error
- func WriteIntelRdtTasks(dir string, pid int) error
- type CMTNumaNodeStats
- type L3CacheInfo
- type LastCmdError
- type MBMNumaNodeStats
- type Manager
- type MemBwInfo
- type NotFoundError
- type Stats
Constants ¶
View Source
const (
IntelRdtTasks = "tasks"
)
Variables ¶
This section is empty.
Functions ¶
func GetIntelRdtPath ¶
Get the 'container_id' path in Intel RDT "resource control" filesystem
func IsMBAScEnabled ¶
func IsMBAScEnabled() bool
Check if Intel RDT/MBA Software Controller is enabled
func IsNotFound ¶
func NewLastCmdError ¶
func NewNotFoundError ¶
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 LastCmdError ¶
func (*LastCmdError) Error ¶
func (e *LastCmdError) Error() string
type MBMNumaNodeStats ¶
type Manager ¶
type Manager interface { // Applies Intel RDT configuration to the process with the specified pid Apply(pid int) error // Returns statistics for Intel RDT GetStats() (*Stats, error) // Destroys the Intel RDT 'container_id' group Destroy() error // Returns Intel RDT path to save in a state file and to be able to // restore the object later GetPath() string // Set Intel RDT "resource control" filesystem as configured. Set(container *configs.Config) error }
type NotFoundError ¶
type NotFoundError struct {
ResourceControl string
}
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
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"` // 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.