Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is there a way to speed up my boot to about 15-20 sec? This is my current boot. I already enabled concurrency in /etc/init.d/rc and disabled some useless daemons. Would compiling a custom kernel shave off a lot? I also read somewhere a while back that compiling drivers directly into the kernel speeds things up. I have no idea how that would work, especially with nvidia's driver.
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
there are a great many things in the boot scripts that have timeouts, like "sleep 5s". if you spend a lot of time going through the scripts, and finding the minimum amount of time your machine needs for things, you can shave many seconds off of your boot time.
Best way to speed it up is compile a custom kernel and make sure that you rip out all that is not strictly needed. As for the benefit of compiling everything into the kernel, I don't know. Modules load and unload so fast that it won't make much of a difference IMHO. Of course, some HAVE to be compiled in but only because your system won't boot properly if you don't.
That being said, I recently compiled a custom kernel on my Ubuntu system. It took nearly two hours to go over all the options and to do the compilation. The net result is that my system now boots ten seconds faster. Two hours - ten seconds. You tell me how many times I'll need to boot my system to compensate for the two hours I invested. By the time I reach a break-even, I'll have moved to a different kernel if not a new system. Still, compiling a kernel is an experience in its own right that can be quite interesting so I'm obviously not telling you that it's not a good idea.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.