Comments (6)
Hi wangerforcs,
The perf_monitoring.c has all the code of monitoring by perf. It uses standard system call perf_event_open which is defined in lib/perf.c
https://www.systutorials.com/docs/linux/man/2-perf_event_open/
https://github.com/intel/intel-cmt-cat/blob/master/lib/perf_monitoring.c
Events:
/** List of non virtual events */
const enum pqos_mon_event mon_event[] = {
PQOS_MON_EVENT_L3_OCCUP,
PQOS_MON_EVENT_LMEM_BW,
PQOS_MON_EVENT_TMEM_BW,
PQOS_PERF_EVENT_LLC_MISS,
PQOS_PERF_EVENT_LLC_REF,
(enum pqos_mon_event)PQOS_PERF_EVENT_CYCLES,
(enum pqos_mon_event)PQOS_PERF_EVENT_INSTRUCTIONS,
PQOS_PERF_EVENT_LLC_MISS_PCIE_READ,
PQOS_PERF_EVENT_LLC_MISS_PCIE_WRITE,
PQOS_PERF_EVENT_LLC_REF_PCIE_READ,
PQOS_PERF_EVENT_LLC_REF_PCIE_WRITE};
In the above events, the required event is monitored every second.
from intel-cmt-cat.
Hi wangerforcs, The perf_monitoring.c has all the code of monitoring by perf. It uses standard system call perf_event_open which is defined in lib/perf.c
https://www.systutorials.com/docs/linux/man/2-perf_event_open/ https://github.com/intel/intel-cmt-cat/blob/master/lib/perf_monitoring.c
Events:
/** List of non virtual events */ const enum pqos_mon_event mon_event[] = { PQOS_MON_EVENT_L3_OCCUP, PQOS_MON_EVENT_LMEM_BW, PQOS_MON_EVENT_TMEM_BW, PQOS_PERF_EVENT_LLC_MISS, PQOS_PERF_EVENT_LLC_REF, (enum pqos_mon_event)PQOS_PERF_EVENT_CYCLES, (enum pqos_mon_event)PQOS_PERF_EVENT_INSTRUCTIONS, PQOS_PERF_EVENT_LLC_MISS_PCIE_READ, PQOS_PERF_EVENT_LLC_MISS_PCIE_WRITE, PQOS_PERF_EVENT_LLC_REF_PCIE_READ, PQOS_PERF_EVENT_LLC_REF_PCIE_WRITE};
In the above events, the required event is monitored every second.
Hi rkanagar.
I already know it uses standard system call perf_event_open to record these metrics. However, I would like to know how this occupancy metric is caculated by system and why it is a multiple of 104KB.
from intel-cmt-cat.
Hi @wangerforcs ,
Please provide some example output you got. The pqos tool does not calculate anything in multiples of 104KB.
from intel-cmt-cat.
Hi @wangerforcs , Please provide some example output you got. The pqos tool does not calculate anything in multiples of 104KB.
Hi rkanagar,
some examples are as follows,all LLC are a multiple of 104KB. Why?
TIME 2024-07-15 15:34:31
CORE IPC MISSES LLC[KB] MBL[MB/s] MBR[MB/s]
0 0.50 194k 728.0 31.8 0.0
1 0.23 79k 0.0 27.8 0.0
2 0.18 8k 104.0 0.8 0.0
3 0.16 7k 208.0 0.9 0.0
4 3.92 3104k 0.0 0.1 0.0
5 0.19 16k 0.0 0.4 0.0
6 0.36 13k 0.0 1.5 0.0
7 1.18 60k 0.0 12.9 0.0
8 3.92 3011k 0.0 0.2 0.0
9 0.36 251k 104.0 26.9 0.0
10 0.29 48k 208.0 4.5 0.0
11 0.11 65k 0.0 0.9 0.0
12 0.20 11k 0.0 1.2 0.0
13 0.17 8k 0.0 0.5 0.0
14 0.37 79k 312.0 6.4 0.0
15 0.37 34k 208.0 2.7 0.0
16 0.37 45k 208.0 5.4 0.0
17 0.32 79k 0.0 5.9 0.0
18 0.36 13k 104.0 1.1 0.0
19 0.42 26k 0.0 4.8 0.0
20 1.24 94k 0.0 21.6 0.0
21 4.07 876k 0.0 0.0 0.0
22 0.16 14k 104.0 0.9 0.0
23 0.32 3k 104.0 1.8 0.0
24 3.12 4213k 104.0 0.0 0.0
25 3.13 1175k 0.0 0.0 0.0
26 0.34 41k 312.0 1.6 0.0
27 0.61 18k 0.0 6.8 0.0
28 2.20 944k 0.0 0.0 0.0
29 0.15 55k 208.0 7.1 0.0
30 0.48 15k 0.0 0.1 0.0
31 0.41 46k 208.0 2.6 0.0
32 0.51 59k 0.0 9.8 0.0
33 0.27 49k 104.0 11.5 0.0^C
from intel-cmt-cat.
HI @wangerforcs ,
I am unable to help you in this issue. I dont see any pqos tool issue. I dont know how the Linux system call perf_event_open calculates this value.
from intel-cmt-cat.
HI @wangerforcs , I am unable to help you in this issue. I dont see any pqos tool issue. I dont know how the Linux system call perf_event_open calculates this value.
Thanks for your response.
from intel-cmt-cat.
Related Issues (20)
- Does this tool support for 12th Gen Intel(R) Core(TM) i3-12100F?
- Supports for 13th Gen Intel Core
- Why setting COS through code APIs is invalid? HOT 2
- A question about the USE of Highest Way in l3_cat HOT 2
- Project versioning update
- conflict with libvirt cachetune
- Intel RDT for 13th Gen Intel(R) Core(TM) i9-13900KS HOT 1
- What is shareable_bits in resctrl?Or what is "ways contention bit-mask" in pqos? HOT 1
- Could I check if pqos set llc value is valid in linux file system HOT 1
- Installing problem HOT 2
- The pqos tool fails on systems with 300 or more CPU cores HOT 1
- Create version tag following the traditional v5.0.0 style HOT 1
- MBA doesn't work on Intel(R) Xeon(R) Gold 6226R CPU HOT 13
- Pqos tool doesn't support CPUs with hybrid architecture
- pqos does not work on AMD Zen2/Rome parts since v23.08 HOT 1
- RDT support on Meteor Lake HOT 1
- Enhance Intel PCM Integration with pqos for Comprehensive Memory Bandwidth Monitoring HOT 1
- Expected MBA controller but not requested while configuring MBA in % HOT 1
- Actual memory bw is higher than configured using MBA in MB/s HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intel-cmt-cat.