May 19, 2009 16:27
Fortunately, we are not able to access our remote machines these days. And so we are getting enough time to rejuvenate our creativity.
I started two things simultaneously. I am learning HTML, PHP and Perl altogether.
I also started another thing called "Booting Linux Faster". Here it went out the whole day.
Machine Configuration - 512 RAM, Dual core Intel, RHEL5.1
Step 1:
My machine takes time 01:11:2 seconds to get login prompt.
Step 2:
Decide on unnecessary services and stop them.
I stopped
chkconfig ip6tables off
chkconfig setroubleshoot off
chkconfig vmware off
chkconfig bluetooth off
chkconfig sendmail off
chkconfig yum-updatesd off
Now, I am at 01:04:7
Step 3:
I got to know that while starting network manager, it takes much time in starting loopback devices.
I stopped starting loopback devices. I said ONBOOT=no
Now, I was at 01:03:0
Step 4:
Lately, I learned that SPLASH screen takes much time. If you want faster boot, hate splash screen.
I offed
grub splash (comment out grub.conf that splashimage line),
boot splash (edit /etc/sysconfig/init and say no color there)
and KDE splash (go to control center and stop it)
Now, I was at 00:53:2
Step 5:
My kernel has lotta unnecessary modules that gets loaded when I start my machine.
Like even if I use just ethernet... My wireless, bluetooth and router configuration and all such nonsensical things were enabled.
I disabled them and recompiled kernel.
And then finaly I was at 00:48:00
I am too happy that within a minute I can start my work. I press my pc's power button and after a minute, my cpu and disk are idle for me.
Huhhhhhh!!!
--
Thanks, Viral Mehta, Embedded Software Engineer, www.einfochips.com