Giter Site home page Giter Site logo

Comments (6)

tkanteck avatar tkanteck commented on August 15, 2024

Hello,
Thanks for the contact. Unfortunately, these two tools cannot run in parallel due to the reasons described above: access to MSR registers and RMID's. It is not safe to run Intel PCM or pqos with Linux perf CMT & MBM events at the same time either.
It is OK to run multiple instances of pqos tool for monitoring as long as monitored core sets are exclusive (don't overlap).
Could you use Linux perf only to monitor events of interest?
Thanks,
Tomasz

from intel-cmt-cat.

tkanteck avatar tkanteck commented on August 15, 2024

Let me close this issue for now. If you have any further questions please open a new one.
Thanks,
Tomasz

from intel-cmt-cat.

tkanteck avatar tkanteck commented on August 15, 2024

Just a comment clarifying today situation:

There are about three different tools that provide MBM and CMT monitoring capability at the moment:

  • Linux perf (CMT kernel 4.1+, MBM kernel 4.6+)
  • Intel PCM
  • pqos (intel-cmt-cat)
    As of today, Intel PCM and pqos access MSR registers from user space to monitor CMT/MBM. 'pqos' can detect that Intel PCM is running and will not start monitoring of the same cores.
    When pqos and Intel PCM transition to use perf interface for CMT/MBM then use of the tools in parallel will be completely safe.

from intel-cmt-cat.

xzhangxin avatar xzhangxin commented on August 15, 2024

Thanks for the reply. I'd like to use Intel PCM and pqos together, because Intel PCM could monitor more kinds of resource, and pqos could monitor the resource with different pid. Unfortunately, they can't be used at the same time. So I try to directly use Linux perf with the raw hardware event descriptor to monitor all the interested events, but it's not easy to find out all the correct event numbers and umask values, and they may be different with different processor architectures.

Now I decide to use Intel PCM and Linux perf together, while Linux perf only monitor some kvm events, which belong to the tracepoint events. Do you think it is safe?

from intel-cmt-cat.

tkanteck avatar tkanteck commented on August 15, 2024

It should be safe as long as perf doesn't monitor CMT or MBM.

from intel-cmt-cat.

xzhangxin avatar xzhangxin commented on August 15, 2024

Thanks!

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.