[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-newbie
Subject:    Re: measuring boottime ?
From:       Yeti <yeti () myhich ! com>
Date:       2008-11-04 15:54:32
Message-ID: 6adb32bc0811040754n1cc09bb5l64dffd3b846daa16 () mail ! gmail ! com
[Download RAW message or body]

> I created a custom initrd.img , while creating rootfs, I added
> following lines to /etc/init.d/rcS script,
> "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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic