<div dir="ltr">Both machines return around the 0m0.013s value, while the newer one shows a lower value, not by much (even though it is a 160gb disk, in comparison to the 40gb disk).<br><br><div class="gmail_quote">2009/9/8 Arie Skliarouk <span dir="ltr">&lt;<a href="mailto:skliarie@gmail.com">skliarie@gmail.com</a>&gt;</span><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">Try to measure disk seek time on both disks:<br><br> time echo $(dd if=/dev/sda of=/dev/null count=1 bs=512; dd if=/dev/sda of=/dev/null count=1 bs=1 skip=200049647116;)<br>
<br>Replace the last number with size of the disk - several bytes (check using fdisk -l).<br>

The operation would give meaningful result only the first time you run it.<br><br>If someone has better way to check disk seek speed, please share.<br><br>Are you running the script as root?<br>Do you get the same slow results each time you run it or only the first time?<br>


Is there disk thrashing during startup?<br><br clear="all">--<br><font color="#888888">Arie<br><br>
<br><br></font><div class="gmail_quote"><div><div></div><div class="h5">2009/9/8 Noam Rathaus <span dir="ltr">&lt;<a href="mailto:noamr@beyondsecurity.com" target="_blank">noamr@beyondsecurity.com</a>&gt;</span><br></div>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">

<div dir="ltr">Everything is on the /dev/sda<br><br>And local<br><br>That is not the answer...<div><div></div><div><br><br><div class="gmail_quote">On Tue, Sep 8, 2009 at 3:28 PM, Gabor Szabo <span dir="ltr">&lt;<a href="mailto:szabgab@gmail.com" target="_blank">szabgab@gmail.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;">2009/9/8 Noam Rathaus &lt;<a href="mailto:noamr@beyondsecurity.com" target="_blank">noamr@beyondsecurity.com</a>&gt;:<br>




<div><div></div><div>&gt; Hi,<br>
&gt;<br>
&gt; I have two machines, their hardware is not identical, but their installation<br>
&gt; is.<br>
&gt;<br>
&gt; One is a 3 years old DELL server, while the other is a 1 year old server.<br>
&gt;<br>
&gt; One is running 2.6.26-2-686 while the other 2.6.30-1-686<br>
&gt;<br>
&gt; What I am seeing is slow startup - emphasis on startup, the code works fast<br>
&gt; once its running - of perl scripts<br>
&gt;<br>
&gt; Even the smallest perl script such as this:<br>
&gt; ===<br>
&gt; #!/usr/bin/perl<br>
&gt;<br>
&gt; use lib &#39;/usr/local/MySystem/lib&#39;;<br>
&gt;<br>
&gt; use DB;<br>
&gt;<br>
&gt; ===<br>
&gt;<br>
&gt; Take 7 seconds to start, in comparison to 0.030secods<br>
&gt;<br>
&gt; If I don&#39;t use the &quot;use DB;&quot; which my package<br>
&gt;<br>
&gt; It loads fast<br>
&gt;<br>
&gt; I am trying to figure out why, I checked the HD speeds via hdparam, the<br>
&gt; newer server is 1.5 times faster 103MB/sec<br>
&gt;<br>
&gt; I tried to see what libraries were being used, used strace, but I can&#39;t see<br>
&gt; something &quot;big&quot; that is causing the delay.<br>
&gt;<br>
&gt; The &quot;use DB;&quot; can be replaced with any other &quot;custom&quot; library package I<br>
&gt; wrote, they all take 2-7 seconds to load, while on the other machine it<br>
&gt; takes negligible time<br>
&gt;<br>
&gt; Does someone have a &quot;thread&quot; to cling to?<br>
&gt;<br>
<br>
<br>
</div></div>A wide guess is that it is searching the @INC and on one system<br>
@INC points to a slow disk maybe via NFS ?<br>
<font color="#888888"><br>
Gabor<br>
<br>
</font></blockquote></div><br></div></div></div>
<br></div></div><div class="im">_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il" target="_blank">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
<br></div></blockquote></div><br></div>
<br>_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
<br></blockquote></div><br></div>