Giter Site home page Giter Site logo

Comments (6)

rkanagar avatar rkanagar commented on July 17, 2024

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.

wangerforcs avatar wangerforcs commented on July 17, 2024

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.

rkanagar avatar rkanagar commented on July 17, 2024

Hi @wangerforcs ,
Please provide some example output you got. The pqos tool does not calculate anything in multiples of 104KB.

from intel-cmt-cat.

wangerforcs avatar wangerforcs commented on July 17, 2024

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.

rkanagar avatar rkanagar commented on July 17, 2024

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.

wangerforcs avatar wangerforcs commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.