<div dir="ltr">The only obvious one is that read() shown under strace, takes a significant more time on the new machine than the old one<br><br><div class="gmail_quote">On Tue, Sep 8, 2009 at 5:43 PM, Shachar Shemesh <span dir="ltr"><<a href="mailto:shachar@shemesh.biz">shachar@shemesh.biz</a>></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;">
<div dir="ltr" bgcolor="#ffffff" text="#000000"><div class="im">
Noam Meltzer wrote:
<blockquote type="cite">
<div dir="ltr">the time output does looks like you have higher cpu
usage for some reason, so i agree with Shachar on this.<br>
<br>
you can also try to pinpoint the place the cpu is spent.<br>
strace and/or ltrace with the '-f -c' flags can help.<br>
</div>
</blockquote></div>
I'm not sure about ltrace, but strace will not help. Most of the time
is spent in user space, not in the kernel.<br>
<br>
Strace may help if the problem is time spent in another process (i.e. -
while the main process is sleeping), but it seems Noam has already
tried that one and failed to spot any obvious candidates.<br><font color="#888888">
<br>
Shachar</font><div class="im"><br>
<blockquote type="cite">
<div dir="ltr"><br>
<br>
<br>
<div class="gmail_quote">On Tue, Sep 8, 2009 at 5:24 PM, Shachar
Shemesh <span dir="ltr"><<a href="mailto:shachar@shemesh.biz" target="_blank">shachar@shemesh.biz</a>></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;">
<div dir="ltr" bgcolor="#ffffff" text="#000000">
<div>Noam Rathaus wrote:
<blockquote type="cite">
<div dir="ltr">I know the time difference doesn't look too bad,
but
take a bigger code set:<br>
<br>
Fast:<br>
real 0m1.682s<br>
user 0m1.584s<br>
sys 0m0.064s<br>
<br>
Slow:<br>
real 0m16.730s<br>
user 0m9.345s<br>
sys 0m0.096s<br>
<br>
</div>
</blockquote>
</div>
These times spell "CPU intensive". Does your library do anything
special? If you try to import a dummy library, does this still happen?
<div><br>
<br>
Shachar<br>
<br>
<pre cols="72">--
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
<a href="http://www.lingnu.com" target="_blank">http://www.lingnu.com</a>
</pre>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<br>
<pre cols="72">--
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
<a href="http://www.lingnu.com" target="_blank">http://www.lingnu.com</a>
</pre>
</div></div>
</blockquote></div><br></div>