intel/intel-cmt-cat

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

kazi-m22 opened this issue · 4 comments

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?

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.

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?

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

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