intel-cmt-cat icon indicating copy to clipboard operation
intel-cmt-cat copied to clipboard

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

Open kazi-m22 opened this issue 3 years ago • 2 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?

kazi-m22 avatar Apr 16 '22 22:04 kazi-m22

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.

aleksinx avatar Apr 26 '22 09:04 aleksinx

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?

kazi-m22 avatar Apr 26 '22 21:04 kazi-m22

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

aleksinx avatar Oct 17 '22 07:10 aleksinx

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

aleksinx avatar Mar 01 '23 10:03 aleksinx