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

[Question] How can I run a specific program in a specific COS using both MSR and OS/Kernel interface? #214

Closed kazi-m22 closed 1 year ago

kazi-m22 commented 2 years ago

Suppose I have a program named test.c and I want that to make sure that the program takes place only in COS1. How do I do that?

aleksinx commented 2 years ago

With MSR interface only core and be assigned to COS. You can pin selected cores to COS1 using command

pqos --iface=msr -a pqos -a llc:3=<CORES>

You can pin application to the selected core using taskset

With OS interface you can additionally assign PID to COS.

kazi-m22 commented 2 years ago

In this link from intel https://www.intel.com/content/www/us/en/developer/articles/technical/introduction-to-cache-allocation-technology.html it says threads can also be placed in specific COS (thread, app, VM or containers). Is this like binding thread to a core and set the core a special COS? Or is there any other way from kernel interface?

aleksinx commented 1 year ago

Yes, with OS interface PID can be assigned to COS using pqos -a pid:\=\

aleksinx commented 1 year ago

Closing the issue now. Please reopen if you have more questions.