On 6/21/07, <b class="gmail_sendername">Kendall Bailey</b> &lt;<a href="mailto:krbailey@gmail.com">krbailey@gmail.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have a math optimization app that runs for several minutes on a dual<br>proc/dual core opteron SLES 9 box.&nbsp;&nbsp;Plenty of RAM.&nbsp;&nbsp;It uses 4 threads<br>to do some parallel computation to take advantage of all 4 cpu cores.<br>Looking at &#39;top&#39;, or using &#39;time&#39; to measure cpu time, it&#39;s logging
<br>30% or more sys time vs. 60-70% user time during the parallel phases.<br>I ran it with &#39;strace -c&#39; and that says only 0.003 seconds are spent<br>in system calls.&nbsp;&nbsp;No system calls going on at all on the 4 threads.
<br>So what does the &#39;sys&#39; time represent as reported by top?<br><br>Thanks.<br>Kendall<br>_______________________________________________<br>Cialug mailing list<br><a href="mailto:Cialug@cialug.org">Cialug@cialug.org
</a><br><a href="http://cialug.org/mailman/listinfo/cialug">http://cialug.org/mailman/listinfo/cialug</a><br></blockquote></div><br>I&#39;m not very knowledgable in this area, but perhaps some of the libraries you are using have to make syscall&#39;s to complete.&nbsp; Perhaps something to do with the threading.
<br><br>Like I said, it&#39;s just a guess.<br clear="all"><br>-- <br>Jerry H<br>jweida [-at-] gmail [-dot-] com