perf mem record fails with "memory events not supported"

Solution Verified - Updated -

Issue

  • Running perf mem record inside a virtual machine (KVM, VMware) fails with one of the following errors:
# perf mem record
failed: memory events not supported

# perf mem record
failed: no PMU supports the memory events

Environment

  • Red Hat Enterprise Linux
  • KVM virtual machine
  • VMware virtual machine

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content