-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add RDT Memory Bandwidth Monitoring (MBM) and Cache Monitoring Technology (CMT) statistics. #2292
Add RDT Memory Bandwidth Monitoring (MBM) and Cache Monitoring Technology (CMT) statistics. #2292
Conversation
e7b8e36
to
1f865d7
Compare
@Creatone can you please avoid the merge commit? You can do so by using |
Signed-off-by: Paweł Szulik <[email protected]>
1f865d7
to
2fcf88b
Compare
@kolyshkin Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the rework, it looks better now. Left some more comments.
531cfeb
to
d2b4e6b
Compare
d2b4e6b
to
4eb533d
Compare
Signed-off-by: Paweł Szulik <[email protected]>
ad197e6
to
d1e4c7b
Compare
ad0d26c
to
9685ee2
Compare
@AkihiroSuda Could you review this? |
types/events.go
Outdated
@@ -113,6 +115,12 @@ type IntelRdt struct { | |||
|
|||
// 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 *[]intelrdt.MBMNumaNodeStats `json:"mbm_statistics,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe: json:"mbm_stats,omitempty"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Creatone ^^^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kolyshkin this comment is outdated. String was already changed long time ago.
Looks good but a single nit |
9685ee2
to
c883678
Compare
@cyphar Could you review this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (once a nit by @AkihiroSuda is acted upon)
libcontainer/intelrdt/stats.go
Outdated
@@ -33,6 +46,12 @@ type Stats struct { | |||
|
|||
// 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_statistics,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
statistics -> stats?
Signed-off-by: Paweł Szulik <[email protected]>
c883678
to
799d948
Compare
@kolyshkin Is it possible to merge this? |
@kolyshkin PTAL |
@kolyshkin LGTY? |
This pull request introduces the reading of Intel RDT Memory Bandwidth Monitoring statistics.