<div dir="ltr">1) I know DB takes time to load, how will this help me?<br><br>2) /dev/zero took on the old machine 11second, on the new machine 6seconds - doesn't really help as I already knew the new HW is faster on disk - this through hdparm's speed testing<br>
<br>3) no entropy is access DB is a wrapper around DBI, nothing more... in any case both running of that entropy returned almost immediately<br><br><div class="gmail_quote">2009/9/9 Arie Skliarouk <span dir="ltr"><<a href="mailto:skliarie@gmail.com">skliarie@gmail.com</a>></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 run the following on both machines:<br><br>#!/usr/bin/perl <br>use Time::HiRes;<br>
($seconds, $microseconds) = Time::HiRes::gettimeofday;<br>print "Start: $seconds.$microseconds\n";<br><br>use DB;<br>
<br>($seconds, $microseconds) = Time::HiRes::gettimeofday;<br>print "loaded DB: $seconds.$microseconds\n";<br><br><br>Besides "use DB" stick couple more libraries and print the timestamp after each one.<br>
<br>Test write speed of disks:<br>time (dd if=/dev/zero of=/tmp/abc bs=1M count=500 && sync)<br><br>One of the things the "use DB" does it to load several bytes of entropy from /dev/random. If the newer machine has much activity, the /dev/random will not block. Idle machine might require some time to gather entropy. Test the entropy as follows:<br>
time dd if=/dev/random of=/dev/null bs=100000 count=1<br><br clear="all">--<br>Arie<br><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>