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
692 stars 182 forks source link

Not support on VM #207

Closed kom0055 closed 2 years ago

kom0055 commented 2 years ago

pqos can work fine on machine, Centos 8, 4.18.0-348.2.1.el8_5.x86_64. but when on the VM created on that machine, it not work. VM AnolisOs 4.19.91-23.4.an8.x86_64.

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 1 (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 1 (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 1 (1 bits)
DEBUG: CACHE: not inclusive, direct mapped, 16 way(s), 4096 set(s), line size 64, 1 partition(s)
INFO: CACHE: type 3, level 3, max id sharing this cache 1 (1 bits)
DEBUG: CACHE: inclusive, complex cache indexing, 16 way(s), 16384 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 1, socket 1, L2 ID 0, L3 ID 0, APICID 1
DEBUG: Detected core 2, socket 2, L2 ID 1, L3 ID 1, APICID 2
DEBUG: Detected core 3, socket 3, L2 ID 1, L3 ID 1, APICID 3
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!
kmabbasi commented 2 years ago

Yes, this is expected RDT doesn't work on VM.

We recommend baremetal platform [1] for RDT.

[1] https://github.com/intel/intel-cmt-cat/blob/master/README.md#hardware-support

Thanks, Khawar

ColinIanKing commented 2 years ago

It may be useful to check if the application is being run on a VM and report an error that it can't be run on a VM.

kmabbasi commented 2 years ago

Yes sure, we will investigate on it. By now I am going to close this issue.

Thanks, Khawar