Hi Rick,<br><br>Thanks for clarification. <br>How to change the method used to calculate CPU utilization ?<br>Do I need to configure netperf with flag enable-cpuutil=method ?<br>I am actually using this netperf on ARM board. <br>
Which is the best method ?<br><br>Regards,<br>Steev<br><br><br><div class="gmail_quote">On Thu, Jan 27, 2011 at 11:36 PM, Rick Jones <span dir="ltr">&lt;<a href="mailto:rick.jones2@hp.com">rick.jones2@hp.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">[discussions started in netperf-talk should remain there... ]<br>
<br>
Steevan Rodrigues wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Rick,<br>
<br><div class="im">
Thanks for the explanation. That really helped us.<br>
<br>
I have one more question on CPU utilization reported by netperf.<br>
<br>
Does netperf report CPU utilization for the &quot;netperf&quot; tool or is it entire CPU utilization accounting for other tasks that are running ?<br>
<br>
I am asking this question because I am seeing large difference between CPU utilization reported by netperf and the &quot;top&quot; command.<br>
<br>
Could you please clarify this?<br>
</div></blockquote>
<br>
Sadly, <a href="http://www.netperf.org/svn/netperf2/trunk/doc/netperf.html#CPU-Utilization" target="_blank">http://www.netperf.org/svn/netperf2/trunk/doc/netperf.html#CPU-Utilization</a> does not address that directly.  I&#39;ll have to update it at some point.<br>

<br>
Netperf believes it is measuring the CPU utilization of the entire system and ass-u-me-s it is the only source of that CPU utilization.   That said, with the advent of HW threading and such, measuring &quot;CPU utilization&quot; has become rather more complicated and depending on the system, and the method netperf is using (see the URL above) I could see where there might be discrepancies.<br>

<br>
Based on the previous emails, and the netperf output contained therein, I would guess that the method being used by netperf is the /proc/stat method.  (The &#39;S&#39; in the header portion for CPU utilization is the thing that makes me guess that).  There have been some &quot;issues&quot; in the past with format changes in /proc/stat that were not noticed by netperf.  You might compare the output of /proc/stat with the source code in src/netcpu_procstat.c  While doing-so, adding a -d to the global command line options to get the code to be a bit chatty about what it is doing might be goodness.<br>

<br>
happy benchmarking,<br><font color="#888888">
<br>
rick jones<br>
</font></blockquote></div><br>