<?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: perfmon PercentProcessorTime incorrect maximum in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/perfmon-PercentProcessorTime-incorrect-maximum/m-p/270596#M190072</link>
    <description>&lt;P&gt;Thanks Ramdaspr, that helps. So when I setup a perfmon input, it's just wrapping some WMI around it and calling Win32_PerfFormattedData_XXXX? How can I get Win32_PerfRawData_XXXX and cook it myself at search time? I want this: &lt;A href="https://msdn.microsoft.com/en-us/library/ms974615.aspx" target="_blank"&gt;https://msdn.microsoft.com/en-us/library/ms974615.aspx&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 07:34:33 GMT</pubDate>
    <dc:creator>robertlabrie</dc:creator>
    <dc:date>2020-09-29T07:34:33Z</dc:date>
    <item>
      <title>perfmon PercentProcessorTime incorrect maximum</title>
      <link>https://community.splunk.com/t5/Splunk-Search/perfmon-PercentProcessorTime-incorrect-maximum/m-p/270592#M190068</link>
      <description>&lt;P&gt;Splunk 6.1 running on Windows 2012 R1 perfmon remote machine Windows 2008 R1.&lt;/P&gt;

&lt;P&gt;Querying PercentProcessorTime from PerfProc_Process, processes max out at 100%, but this is not correct. Multi-threaded processes can span multiple CPUs, and the theoretical maximum value for this counter is 100 * total CPU cores. Watching % Processor Time in pefmon, I see an instance of sqlserver cross 400%, which is expected, since this represents 25% of my 16 core server. &lt;/P&gt;

&lt;P&gt;1) Am I using the wrong counter/query?&lt;BR /&gt;
2) Is this a known issue with this version of Splunk?&lt;BR /&gt;
3) Is it a bug?&lt;/P&gt;

&lt;P&gt;From powershell (zero valued entries removed)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    PS C:\Users\admin.rlabrie&amp;gt; Get-Counter "\Process(*)\% Processor Time"

    Timestamp                 CounterSamples                                                                                      
    ---------                 -------------- 

    10/13/2015 8:06:21 AM     \\loris-sqlb\process(idle)\% processor time :                                                       
                              1184.87433030096                                                                                    
                              \\loris-sqlb\process(sqlservr)\% processor time :                                                   
                              179.805832224659                                                                                    
                              \\loris-sqlb\process(w3wp)\% processor time :                                                       
                              152.143396497789                                                                                    
                              \\loris-sqlb\process(_total)\% processor time :                                                     
                              1578.29563841645                                                                                    
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Oct 2015 21:04:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/perfmon-PercentProcessorTime-incorrect-maximum/m-p/270592#M190068</guid>
      <dc:creator>robertlabrie</dc:creator>
      <dc:date>2015-10-12T21:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: perfmon PercentProcessorTime incorrect maximum</title>
      <link>https://community.splunk.com/t5/Splunk-Search/perfmon-PercentProcessorTime-incorrect-maximum/m-p/270593#M190069</link>
      <description>&lt;P&gt;Apparently that is a &lt;A href="http://docs.splunk.com/Special:SpecialLatestDoc?t=Documentation/Splunk/latest/Data/Real-timeWindowsperformancemonitoring"&gt;known caveat&lt;/A&gt;. AFAIK this exists in 6.1.x since I have run into the same problem. Not sure if this is resolved in 6.2 since the docs don't specifically call this out.&lt;/P&gt;

&lt;P&gt;Quoting the docs&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Due to how Microsoft tallies CPU usage with the Processor:% Processor Time and Process:% Processor Time counters, these counters do not return a value of more than 100 regardless of the number of CPUs or cores in the system.&lt;BR /&gt;
This is by design - these counters subtract the amount of time spent on the Idle process from 100%.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 13 Oct 2015 03:41:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/perfmon-PercentProcessorTime-incorrect-maximum/m-p/270593#M190069</guid>
      <dc:creator>ramdaspr</dc:creator>
      <dc:date>2015-10-13T03:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: perfmon PercentProcessorTime incorrect maximum</title>
      <link>https://community.splunk.com/t5/Splunk-Search/perfmon-PercentProcessorTime-incorrect-maximum/m-p/270594#M190070</link>
      <description>&lt;P&gt;Thanks for your reply. Yes, they still have it listed as a caveat in the 6.2 and 6.3 docs. Trouble is, it doesn't fit with the powershell snippet I posted above, which clearly shows counters above 100%. Thanks though.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 12:39:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/perfmon-PercentProcessorTime-incorrect-maximum/m-p/270594#M190070</guid>
      <dc:creator>robertlabrie</dc:creator>
      <dc:date>2015-10-13T12:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: perfmon PercentProcessorTime incorrect maximum</title>
      <link>https://community.splunk.com/t5/Splunk-Search/perfmon-PercentProcessorTime-incorrect-maximum/m-p/270595#M190071</link>
      <description>&lt;P&gt;PerfMon in PowerShell actually considers the number of cores in the system while pulling data from Win32_PerfRawData_PerfProc_Process while reporting.&lt;/P&gt;

&lt;P&gt;Win32_PerfFormattedData_PerfProc_Process on the other hand does not and is capped at 100% even though the process threads can be across multiple cores and sum up greater than 100%. This the same class which splunk for windows uses which is why the default splunk setup is maxes out at 100%.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:34:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/perfmon-PercentProcessorTime-incorrect-maximum/m-p/270595#M190071</guid>
      <dc:creator>ramdaspr</dc:creator>
      <dc:date>2020-09-29T07:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: perfmon PercentProcessorTime incorrect maximum</title>
      <link>https://community.splunk.com/t5/Splunk-Search/perfmon-PercentProcessorTime-incorrect-maximum/m-p/270596#M190072</link>
      <description>&lt;P&gt;Thanks Ramdaspr, that helps. So when I setup a perfmon input, it's just wrapping some WMI around it and calling Win32_PerfFormattedData_XXXX? How can I get Win32_PerfRawData_XXXX and cook it myself at search time? I want this: &lt;A href="https://msdn.microsoft.com/en-us/library/ms974615.aspx" target="_blank"&gt;https://msdn.microsoft.com/en-us/library/ms974615.aspx&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:34:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/perfmon-PercentProcessorTime-incorrect-maximum/m-p/270596#M190072</guid>
      <dc:creator>robertlabrie</dc:creator>
      <dc:date>2020-09-29T07:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: perfmon PercentProcessorTime incorrect maximum</title>
      <link>https://community.splunk.com/t5/Splunk-Search/perfmon-PercentProcessorTime-incorrect-maximum/m-p/270597#M190073</link>
      <description>&lt;P&gt;Yes, thats pretty much how it works.&lt;/P&gt;

&lt;P&gt;Instead of manually calculating via PerfRawData you might have an easier life using Splunk Add-on for Microsoft PowerShell and running the powershell script to provide you the inputs you know are reliably replicated. I havent actually tried implementing this myself so YMMV.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 00:13:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/perfmon-PercentProcessorTime-incorrect-maximum/m-p/270597#M190073</guid>
      <dc:creator>ramdaspr</dc:creator>
      <dc:date>2015-10-16T00:13:38Z</dc:date>
    </item>
  </channel>
</rss>

