Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetMinActiveMB ¶
func SetMinActiveMB(value int)
Types ¶
type DomainMonStat ¶
type DomainMonStat = GroupMBStats
DomainMonStat is memory bandwidth statistic info of one domain, each has multiple groups
func (DomainMonStat) String ¶
func (d DomainMonStat) String() string
type DomainStats ¶
type DomainStats struct {
Incomings map[int]DomainMonStat
Outgoings map[int]DomainMonStat
// domain outgoing summary by groups
OutgoingGroupSumStat map[string][]MBInfo
}
DomainStats keeps memory bandwidth monitored statistics in both directions of traffics
func NewDomainStats ¶
func NewDomainStats(statOutgoing GroupMBStats, ccdToDomain map[int]int, xDomGroups sets.String) (*DomainStats, error)
NewDomainStats splits group-style outgoing mb stat (as from resctrl mon-data) into corresponding domains, and attributes incoming traffic from outgoings for the cross-domain groups
func (*DomainStats) String ¶
func (d *DomainStats) String() string
type GroupMB ¶
GroupMB keeps one group mb info, each group may have multiple ccds
func (GroupMB) HasTraffic ¶
type GroupMBStats ¶
GroupMBStats is memory bandwidth statistic info of multiple groups, each of the groups has multiple CCDs, in line with resctrl FS mon-group mon-data structure
func (GroupMBStats) NormalizeShareSubgroups ¶
func (gms GroupMBStats) NormalizeShareSubgroups() (stats GroupMBStats, isSharedSubgroupConvention bool)
NormalizeShare changes subgroup names shared-xx to share-xx, and returns indition whether the group names use the old style of "shared-xx" conventions. Some resctrl FS may present share subgroup in "shared-xx" form; this conversion replaces with the desired form "share-xx"