<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 12px;" lang="x-western">On 05/20/2013 07:40 AM, <a
class="moz-txt-link-abbreviated"
href="mailto:Valdis.Kletnieks@vt.edu">Valdis.Kletnieks@vt.edu</a>
wrote:
<br>
<blockquote type="cite" style="font-size: small; color: #000000;">On
Mon, 20 May 2013 15:07:33 +0530, Dhyan said:
<br>
<blockquote type="cite" style="font-size: small; color:
#000000;">I was working on to measure boottime for bootime
optimization.
<br>
</blockquote>
The bootloader is probably not where you're going to find places
to optimize.
<br>
It's got two jobs to do - load the kernel and load the initrd.
And it's usually
<br>
pretty optimized to do that. About all you can do there is
minimize the size of
<br>
the kernel and initrd so there's less to load (and move to SSD
if you're really
<br>
hardcore).
<br>
<br>
The only other place to really win in the boot loader is to set
the "hit any
<br>
key to go to the boot menu" timeout to 0 or 1 seconds. Of
course, this means
<br>
you have little (or zero) chance to enter an alternate kernel or
commandline.
<br>
</blockquote>
Valdis is absolutely right.
<br>
<br>
In case the boot loader is not so optimized or you are trying to
reduce the boot time by milliseconds try using a GPIO pin and a
USB logic analyzer (e.g. Salea Logic). Toggle a pin at key places
in the boot sequence to measure time. Setting up a timer and
printing relative time over a serial port will negatively impact
your boot time.
<br>
</div>
</body>
</html>