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
Quoted 3 lines
I created a custom initrd.img , while creating rootfs, I added following lines to
/etc/init.d/rcSscript,
"cat/proc/uptime".
Calling /proc/uptime with /etc/init.d/rcS may not correctly deliver your boot time. Some processes might still be starting after you cat /proc/uptime
I also wonder why you have an idle time of 0.38 seconds. During boot there should hardly be any idle time. You could write yourself an init script and make sure it is the last one to be called by rc. Also note that the uptime delivered by the kernel may not be accurate enough to measure a system's boot time (e.g. pre-kernel hardware calls, etc.).
//A yeti
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs