measuring boottime ?

Hi all ,

I tried to find out another way to measure boottime of beagle board
(since I am not able to find a solution to
http://bugzilla.kernel.org/show_bug.cgi?id=10648)

I created a custom initrd.img , while creating rootfs, I added
following lines to /etc/init.d/rcS script,
"cat /proc/uptime".

I disabled all kernel debug messages and able to get console with
output of cat /proc/uptime as,
"1.07 0.38".

Does this mean, boottime is 1.07 sec or do I needs to follow another method?

Thanks for any help.

Regards,
Shivdas

Try bootchart. It can give a detailed breakdown of which parts of the
boot take how long.

Shivdas Gujare wrote:

Hi all ,

I tried to find out another way to measure boottime of beagle board
(since I am not able to find a solution to
10648 – CONFIG_PRINTK_TIME broken on git HEAD ?)

I created a custom initrd.img , while creating rootfs, I added
following lines to /etc/init.d/rcS script,
"cat /proc/uptime".

I disabled all kernel debug messages and able to get console with
output of cat /proc/uptime as,
"1.07 0.38".

Does this mean, boottime is 1.07 sec or do I needs to follow another method?

It means that 1.07 seconds have transpired since the kernel started it's
own system-level timekeeping. This is usually pretty close to the amount
of time that the kernel has been running (timekeeping is started pretty early).

This will not include the time spent in firmware or in the internal
kernel decompression function (if any).

You may want to use something like grabserial, which measures the time using
an external machine. See:
http://elinux.org/Grabserial

-- Tim