<?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 Re: How to fetch CPU Busy percentage using perf-object-get-instances in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-fetch-CPU-Busy-percentage-using-perf-object-get-instances/m-p/132276#M2412</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/46677"&gt;@rohancmr&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to get the value you want you need the counter itself (cpu_busy) and the base counter (which I believe is processor_elapsed_time). &amp;nbsp;You would then need to read the values at two different points in time and do some math...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# where t1 = first reading and t2 = second reading...
((t2.cpu_busy - t1.cpu_busy) / (t2.processor_elapsed_time - t1.processor_elapsed_time)) * 100 = % CPU busy during that time span&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The base counter, if one is used, is returned back when you query the&amp;nbsp;&lt;SPAN&gt;perf-object-counter-list-info API.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In general there are several different types of counters you'll find...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;raw: single counter value is used &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;delta: change in counter value between two samples is used &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;rate: delta divided by the time in seconds between samples is used &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;average: delta divided by the delta of a base counter is used &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;percent: 100*average is used&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;More information can be found in &lt;A href="http://mysupport.netapp.com/documentation/docweb/index.html?productID=62358&amp;amp;language=en-US" target="_self"&gt;the ZAPI docs&lt;/A&gt;, under the cluster -&amp;gt; perf category. &amp;nbsp;I also wrote an introduction, using PowerShell,&amp;nbsp;&lt;A href="http://practical-admin.com/blog/cdot-performance-monitoring-using-powershell/" target="_self"&gt;here&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope that helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Andrew&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jun 2017 13:37:08 GMT</pubDate>
    <dc:creator>asulliva</dc:creator>
    <dc:date>2017-06-27T13:37:08Z</dc:date>
    <item>
      <title>How to fetch CPU Busy percentage using perf-object-get-instances</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-fetch-CPU-Busy-percentage-using-perf-object-get-instances/m-p/132272#M2411</link>
      <description>&lt;P&gt;I am using perf-object-get-instances to fetch CPU busy percentage with object : system, instance : system and counter : cpu_busy. However, the returned value is 11 digit number.&lt;BR /&gt;How do I convert this to percentage ?&lt;/P&gt;&lt;P&gt;Is there any other way to fetch this information ?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:54:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-fetch-CPU-Busy-percentage-using-perf-object-get-instances/m-p/132272#M2411</guid>
      <dc:creator>rohancmr</dc:creator>
      <dc:date>2025-06-04T14:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch CPU Busy percentage using perf-object-get-instances</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-fetch-CPU-Busy-percentage-using-perf-object-get-instances/m-p/132276#M2412</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/46677"&gt;@rohancmr&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to get the value you want you need the counter itself (cpu_busy) and the base counter (which I believe is processor_elapsed_time). &amp;nbsp;You would then need to read the values at two different points in time and do some math...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# where t1 = first reading and t2 = second reading...
((t2.cpu_busy - t1.cpu_busy) / (t2.processor_elapsed_time - t1.processor_elapsed_time)) * 100 = % CPU busy during that time span&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The base counter, if one is used, is returned back when you query the&amp;nbsp;&lt;SPAN&gt;perf-object-counter-list-info API.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In general there are several different types of counters you'll find...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;raw: single counter value is used &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;delta: change in counter value between two samples is used &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;rate: delta divided by the time in seconds between samples is used &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;average: delta divided by the delta of a base counter is used &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;percent: 100*average is used&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;More information can be found in &lt;A href="http://mysupport.netapp.com/documentation/docweb/index.html?productID=62358&amp;amp;language=en-US" target="_self"&gt;the ZAPI docs&lt;/A&gt;, under the cluster -&amp;gt; perf category. &amp;nbsp;I also wrote an introduction, using PowerShell,&amp;nbsp;&lt;A href="http://practical-admin.com/blog/cdot-performance-monitoring-using-powershell/" target="_self"&gt;here&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope that helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Andrew&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 13:37:08 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-fetch-CPU-Busy-percentage-using-perf-object-get-instances/m-p/132276#M2412</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2017-06-27T13:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch CPU Busy percentage using perf-object-get-instances</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-fetch-CPU-Busy-percentage-using-perf-object-get-instances/m-p/132307#M2414</link>
      <description>&lt;P&gt;It worked. Thanks for help.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 06:23:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/How-to-fetch-CPU-Busy-percentage-using-perf-object-get-instances/m-p/132307#M2414</guid>
      <dc:creator>rohancmr</dc:creator>
      <dc:date>2017-06-28T06:23:24Z</dc:date>
    </item>
  </channel>
</rss>

