<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Use PEBS sampling inside a qemu-kvm VM in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/Use-PEBS-sampling-inside-a-qemu-kvm-VM/m-p/1604587#M8357</link>
    <description>&lt;P&gt;Hello to all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to use PEBS sampling from within a VM. I was under the impression that since linux kernel 6.3 the kvm module virtualizes PEBS counters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, If I run foe example " perf record -d -e cpu/event=0xd1,umask=0x20/ppu -c 1 ls"&lt;/P&gt;&lt;P&gt;inside a qemu-kvm guest I get back: "PMU Hardware doesn't support sampling/overflow-interrupts"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running my experiments in a&amp;nbsp;Sapphire Rapid cpu server and both guest and host run a 6.6 linux kernel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the host I can run perf + PEBS correctly (i.e. the above command runs successfully and I get meaningful output from subsequent perf script command).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions are: a) is it possible to use PEBS sampling/monitoring from within a VM and b) if yes do I need a dedicated qemu version or parameter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Chloe&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2024 21:00:48 GMT</pubDate>
    <dc:creator>xalverti</dc:creator>
    <dc:date>2024-06-06T21:00:48Z</dc:date>
    <item>
      <title>Use PEBS sampling inside a qemu-kvm VM</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Use-PEBS-sampling-inside-a-qemu-kvm-VM/m-p/1604587#M8357</link>
      <description>&lt;P&gt;Hello to all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to use PEBS sampling from within a VM. I was under the impression that since linux kernel 6.3 the kvm module virtualizes PEBS counters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, If I run foe example " perf record -d -e cpu/event=0xd1,umask=0x20/ppu -c 1 ls"&lt;/P&gt;&lt;P&gt;inside a qemu-kvm guest I get back: "PMU Hardware doesn't support sampling/overflow-interrupts"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running my experiments in a&amp;nbsp;Sapphire Rapid cpu server and both guest and host run a 6.6 linux kernel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the host I can run perf + PEBS correctly (i.e. the above command runs successfully and I get meaningful output from subsequent perf script command).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions are: a) is it possible to use PEBS sampling/monitoring from within a VM and b) if yes do I need a dedicated qemu version or parameter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Chloe&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 21:00:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Use-PEBS-sampling-inside-a-qemu-kvm-VM/m-p/1604587#M8357</guid>
      <dc:creator>xalverti</dc:creator>
      <dc:date>2024-06-06T21:00:48Z</dc:date>
    </item>
  </channel>
</rss>

