libcontainer/intelrdt: fix CMT feature check#2643
libcontainer/intelrdt: fix CMT feature check#2643AkihiroSuda merged 1 commit intoopencontainers:masterfrom
Conversation
|
@Creatone @kolyshkin @AkihiroSuda |
|
@xiaochenshen thanks! Can you work on moving the initialization out of Let me know if you need a more detailed explanation. |
@xiaochenshen I mean something like this: #2646 |
@kolyshkin Thank you for code review! Actually, the original implementation of initialization was wrapped in From the description in #2646 , this benefit of change is a speedup to operations, am I right? |
afced5c to
ac27050
Compare
@kolyshkin I have added 2 more commits in this PR: Commit dea6fff only cleans code, no functional change. |
b856cd3 to
606c5ad
Compare
|
@kolyshkin |
|
@Creatone @AkihiroSuda |
|
I favor the |
@cyphar Could you help review and comment this change from |
757ed2c to
db63953
Compare
|
Rebased the code.
But golang-lint an CI failed due to #2661, waiting for #2661 to be merged. |
@cyphar PTAL, thank you! |
a044fdd to
6ce1df4
Compare
d214c57 to
2f774c5
Compare
2f774c5 to
ec13651
Compare
@cyphar @AkihiroSuda @crosbymichael @hqhq |
|
@kolyshkin This PR has opened for a long time. But I think the bug in part (1) should be fixed as soon as possible. |
Makes sense, please do, thanks! |
ec13651 to
620f4c5
Compare
Intel RDT sub-features can be selectively disabled or enabled by kernel command line. See "rdt=" option details in kernel document: https://www.kernel.org/doc/Documentation/admin-guide/kernel-parameters.txt But Cache Monitoring Technology (CMT) feature is not correctly checked in init() and getCMTNumaNodeStats() now. If CMT is disabled by kernel command line (e.g., rdt=!cmt,mbmtotal,mbmlocal,l3cat,mba) while hardware supports CMT, we may get following error when getting Intel RDT stats: runc run c1 runc events c1 ERRO[0005] container_linux.go:200: getting container's Intel RDT stats caused: open /sys/fs/resctrl/c1/mon_data/mon_L3_00/llc_occupancy: no such file or directory Fix CMT feature check in init() and GetStats() call paths. Signed-off-by: Xiaochen Shen <xiaochen.shen@intel.com>
…ure check Intel RDT sub-features can be selectively disabled or enabled by kernel command line. See "rdt=" option details in kernel document: https://www.kernel.org/doc/Documentation/admin-guide/kernel-parameters.txt But Cache Monitoring Technology (CMT) feature is not correctly checked in init() and getCMTNumaNodeStats() now. If CMT is disabled by kernel command line (e.g., rdt=!cmt,mbmtotal,mbmlocal,l3cat,mba) while hardware supports CMT, we may get following error when getting Intel RDT stats: runc run c1 runc events c1 ERRO[0005] container_linux.go:200: getting container's Intel RDT stats caused: open /sys/fs/resctrl/c1/mon_data/mon_L3_00/llc_occupancy: no such file or directory Fix CMT feature check in init() and GetStats() call paths. Signed-off-by: Xiaochen Shen <xiaochen.shen@intel.com>
|
@kolyshkin @kolyshkin @AkihiroSuda @Creatone |
…ure check Intel RDT sub-features can be selectively disabled or enabled by kernel command line. See "rdt=" option details in kernel document: https://www.kernel.org/doc/Documentation/admin-guide/kernel-parameters.txt But Cache Monitoring Technology (CMT) feature is not correctly checked in init() and getCMTNumaNodeStats() now. If CMT is disabled by kernel command line (e.g., rdt=!cmt,mbmtotal,mbmlocal,l3cat,mba) while hardware supports CMT, we may get following error when getting Intel RDT stats: runc run c1 runc events c1 ERRO[0005] container_linux.go:200: getting container's Intel RDT stats caused: open /sys/fs/resctrl/c1/mon_data/mon_L3_00/llc_occupancy: no such file or directory Fix CMT feature check in init() and GetStats() call paths. Signed-off-by: Xiaochen Shen <xiaochen.shen@intel.com>
|
LGTM |
|
@crosbymichael @AkihiroSuda |
Intel RDT sub-features can be selectively disabled or enabled by kernel
command line. See "rdt=" option details in kernel document:
https://www.kernel.org/doc/Documentation/admin-guide/kernel-parameters.txt
But Cache Monitoring Technology (CMT) feature is not correctly checked
in init() and getCMTNumaNodeStats() now. If CMT is disabled by kernel
command line (e.g., rdt=!cmt,mbmtotal,mbmlocal,l3cat,mba) while hardware
supports CMT, we may get following error when getting Intel RDT stats:
runc run c1
runc events c1
ERRO[0005] container_linux.go:200: getting container's Intel RDT stats
caused: open /sys/fs/resctrl/c1/mon_data/mon_L3_00/llc_occupancy: no
such file or directory
Fix CMT feature check in init() and GetStats() call paths.
Signed-off-by: Xiaochen Shen xiaochen.shen@intel.com