intel / intel-cmt-cat

User space software for Intel(R) Resource Director Technology
http://www.intel.com/content/www/us/en/architecture-and-technology/resource-director-technology.html
Other
693 stars 183 forks source link

How to enable resctrl? #184

Closed dxlet closed 3 years ago

dxlet commented 3 years ago

I cannot enable resctrl, same as the problem #179 My kernel is 5.11.16-1.el7.elrepo.x86_64 , OS is centos-release-7-9.2009.1.el7.centos.x86_64, CPU is intel gold 6278C.

# ls /sys/fs/
bpf  cgroup  pstore  selinux  xfs

I have read #108, #152 and https://github.com/intel/intel-cmt-cat/wiki. I have tried to pass kernel command line parameters by modifying /boot/grub2/grub.cfg. The parameters can be seen in /proc/cmdline, but i still can't use resctrl. What is wrong with my method of starting resctrl?

# cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-5.11.16-1.el7.elrepo.x86_64 root=/dev/mapper/centos-root ro crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet rdt=mba

#  pqos -I -D
NOTE:  Mixed use of MSR and kernel interfaces to manage
       CAT or CMT & MBM may lead to unexpected behavior.
ERROR: OS interface selected but not supported
ERROR: os_cap_init() error 8
Error initializing PQoS library!

[root@localhost ~]# pqos -I -sV
NOTE:  Mixed use of MSR and kernel interfaces to manage
       CAT or CMT & MBM may lead to unexpected behavior.
INFO: CACHE: type 1, level 1, max id sharing this cache 2 (1 bits)
DEBUG: CACHE: not inclusive, direct mapped, 8 way(s), 64 set(s), line size 64, 1 partition(s)
INFO: CACHE: type 2, level 1, max id sharing this cache 2 (1 bits)
DEBUG: CACHE: not inclusive, direct mapped, 8 way(s), 64 set(s), line size 64, 1 partition(s)
INFO: CACHE: type 3, level 2, max id sharing this cache 2 (1 bits)
DEBUG: CACHE: not inclusive, direct mapped, 16 way(s), 1024 set(s), line size 64, 1 partition(s)
INFO: CACHE: type 3, level 3, max id sharing this cache 64 (6 bits)
DEBUG: CACHE: not inclusive, complex cache indexing, 11 way(s), 53248 set(s), line size 64, 1 partition(s)
DEBUG: Detected core 0, socket 0, L2 ID 0, L3 ID 0, APICID 0
......
DEBUG: Detected core 103, socket 1, L2 ID 61, L3 ID 1, APICID 123
INFO: resctrl not detected. Kernel version 4.10 or higher required
ERROR: OS interface selected but not supported
ERROR: os_cap_init() error 8
Error initializing PQoS library
kazi-m22 commented 2 years ago

Have you solved the problem? I am stuck with same issue.