How to find time system takes to boot using command
Hi,
I want to know Is there any command to find time system takes to start up? |
Quote:
|
Quote:
In any case, you may be able to see the point that you want from bootchart. Dmesg would be promising, but entries there aren't timestamped by default (for me, iptables entries are, but that's because of the way iptables is set up). You could get an approximate number from this - approximate because you can't really start it at the right time and you possibly can't stop it at the right time, depending on how you define the right time. |
I meant that i have set grub to load default in 1second & i have set autologin for user.so I want to know the time when GUI appears.
|
Quote:
I've not used it ... yet ... but it seems to meet your stated requirements. ~~~ 0;-Dan |
I saw the otput of 'dmesg'.Can you tell me which is the point when GUI appears.I am not fond of using softwares to find information.
|
Quote:
And if you don't want to use 'softwares' (???), how are you planning on monitoring a computer? |
I just wanted to find out time system takes to boot(i.e GUI appears with automatic login)?
|
Quote:
but bootchart & dmesg are the best... |
my OS runs on fairy dust
Quote:
|
TB0ne said that
Code:
X windows startup isn't logged to dmesg, but to your syslog and/or Xorg.0.log. I think this will help me get time system took to boot. |
Quote:
Since you don't want to use "softwares", don't know what else to suggest. If it was me, and I wanted a very accurate boot-time measurement, I'd use bootchart, as was suggested to you. If you don't want to do that, insert a command to output the date to a file, in your rc.local. Then look in the system logs for a start time, and that file for an end time. |
So I added following line to /etc/rc.local
date >>/login.txt Then I created an empty file /login.txt. Now I had configured grub to load default in 10 second & set login in ubuntu to automatic. I restarted my computer. I see that /var/log/syslog says Dec 15 13:34:27 lxuser-desktop syslogd 1.5.0#1ubuntu1: restart. Whereas login.txt contains Tue Dec 15 13:34:31 IST 2009 does that mean ubuntu takes only 4second to boot. |
All times are GMT -5. The time now is 03:43 AM. |