Linux Lite Forums
Speed up Boot time - Printable Version

+- Linux Lite Forums (https://www.freecinema2022.gq/forums)
+-- Forum: General (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=4)
+--- Forum: On Topic (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=14)
+--- Thread: Speed up Boot time (/showthread.php?tid=2425)



Speed up Boot time - Valtam - 11-25-2015

Disclaimer: Only perform this tweak if you are competent on the command line. This guide is not meant for newbies.
If you have an SSD, I'm not sure how much of a difference this will make.

GRUB:

Code:
sudo leafpad /etc/default/grub

replace GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash” with GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash profile

save and exit

Code:
sudo update-grub2

Reboot

Grub does a search for all the necessary drivers to load. Instead of making Grub search for required drivers, the profiling actually makes Grub remember every necessary driver to work. This action will cutting down all of the driver load times. First reboot may be a little slower than normal, but consequent boots should be much faster.

CPU:

If you have a multi-core CPU/Processor, this following steps may be able to speed up your boot time besides of using the step above, follow these instructions:

Code:
sudo leafpad /etc/init.d/rc

find this line : CONCURRENCY=none or CONCURRENCY=makefile
replace with : CONCURRENCY=shell

save and exit

Source:  http://www.ubuntubuzz.com/2012/01/how-to-increasespeed-up-ubuntu-booting.html

USE WITH EXTREME CAUTION

Blacklisting unnecessary kernel modules. Open the terminal and type command lsmod to see what are the modules that are loaded.

Check the value in section "used by", if the value is "0" it means that the this kernel module is not been used by any of the application/process and it's unnecessary occupying the space in the memory, the best way to know about such module to use google/bing search engine and if you feel that this module is not required you can simply unload it, for example if you don't have the floppy drive then why to load floppy module.

Code:
sudo leafpad /etc/modprobe.d/blacklist.conf

go to the bottom of the file and start adding your blacklisted kernel modules, eg.

Code:
blacklist floppy

Code:
sudo update-initramfs -u

reboot.

You MUST research each module you want to prevent loading before you disable it. Don't blacklist everything with a 0.

Source: http://linuxpoison.blogspot.co.nz/2009/06/how-to-disable-loading-of-unnecessary.html


Re: Speed up Boot time - Wirezfree - 11-25-2015

If you want to see your boot times, and whats happening.
Use BootChart
My i7 is 7.05 secs
.
[Image: X2VhPSZ.png]


Re: Speed up Boot time - Wirezfree - 11-25-2015

@Jerry,
I looked through my notes, I had some on Profile.
I had a note to say,
"Once you have profiled, then remove Profile from grub, it adds an over head when it's profiling, so don't need it every boot"
I assume that an unless you change configs, or add things that need new drivera, the profile is O.K till then..??


Re: Speed up Boot time - Valtam - 11-25-2015

Correct.


Re: Speed up Boot time - Duckeenie - 11-25-2015

rc says:

Code:
#
# Check if we are able to use make like booting.  It require the
# insserv package to be enabled. Boot concurrency also requires
# startpar to be installed.
#

Of particular interest here is that startpar isn't installed or in the repo's


Re: Speed up Boot time - UltraCookie - 11-25-2015

Not sure what to change in GRUB_CMDLINE_LINUX_DEFAULT

mine says:
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux acpi_backlight=vendor"

I don't want to mess it up.


Re: Speed up Boot time - regularfella - 12-03-2015

I want to try this...but I'm afraid lol.

It seems like I already boot up in record time anyway. Hard to believe it can get even faster. I'll try it when I have some more time behind the wheel and understand the OS better.

*Edit

Ok, I did the first 2 and it does seem to boot even faster. Thanks, Jerry!
I won't attempt the last mod where you blacklist modules because I don't know enough about that yet.

Good work!