Skip to content
mdcornu edited this page Feb 23, 2016 · 22 revisions

##Usage Examples##

NOTE: Must be run as root.

###Cache Monitoring Technology (CMT) usage:###

  • ####Monitor all events on cores 0 to 11:#### pqos -m all:0-11

  • ####Monitor LLC on cores 0, 2 and 6:#### pqos -m llc:0,2,6

  • ####Monitor local memory B/W on cores 0-2 and remote memory B/W on cores 3, 4 and 5:#### pqos -m "mbl:0-2;mbr:3,4,5"

  • ####Monitor events on groups of cores (aggregate statistics):#### pqos -m "all:[0-11];llc:[12,13,14];mbl:[15-17,20]"

  • ####Monitor all events for PID's 43523, 43589 and 3245 to 3252:#### pqos -p all:43523,43589,3245-3252

  • ####Reset Monitoring:#### Reclaims in-use RMID's.
    pqos -r


###Cache Allocation Technology (CAT) usage:###

  • ####Set COS 1 to the first 4 cache ways and COS 2 to the next 8 cache ways:#### pqos -e "llc:1=0x000f;llc:2=0x0ff0;"

  • ####Associate cores 0, 2, and 6 to 10 with COS 1 and core 1 to COS 2:#### pqos -a "llc:1=0,2,6-10;llc:2=1;"

  • ####Enable, disable CDP:#### pqos -S cdp-on
    pqos -S cdp-off

  • ####Use current CDP settings and set COS 1 code and data bitmasks:#### pqos -S cdp-any -e "llc:1d=0xfff;llc:1c=0xfff00;"

  • ####Reset CAT:#### Sets all COS to default (fill into all ways) and associates all cores with COS 0.
    pqos -R

Clone this wiki locally