LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 11-01-2015, 07:47 AM   #1
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
speed up linux mint boot process


hi all, I have a linux mint, and the boot process is at about 45 seconds long and dmesg contains some strange lines (at least for me). For example here you can see almost 10 seconds delay. What does it mean?
Code:
[    2.457331] usb 3-3: new full-speed USB device number 3 using ohci-pci
[    2.627525] usb 3-3: New USB device found, idVendor=03f0, idProduct=a007
[    2.627529] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.627531] usb 3-3: Product: HP Premium Digital Headset
[    2.627532] usb 3-3: Manufacturer: Hewlett-Packard
[    2.635600] input: Hewlett-Packard HP Premium Digital Headset as /devices/pci0000:00/0000:00:12.0/usb3/3-3/3-3:1.3/0003:03F0:A007.0002/input/input4
[    2.635737] hid-generic 0003:03F0:A007.0002: input,hidraw1: USB HID v1.00 Device [Hewlett-Packard HP Premium Digital Headset] on usb-0000:00:12.0-3/input3
[    3.094296] Switched to clocksource tsc
[    4.500072] floppy0: no floppy controllers found
[    4.884479] random: nonblocking pool is initialized
[    5.015580] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)
[   14.131372] systemd-udevd[410]: starting version 204
[   14.842956] lp: driver loaded but no devices found
[   14.876569] ppdev: user-space parallel port driver
[   15.305291] EXT4-fs (sdb2): re-mounted. Opts: errors=remount-ro
[   15.667459] ACPI Warning: SystemIO range 0x0000000000000b00-0x0000000000000b07 conflicts with OpRegion 0x0000000000000b00-0x0000000000000b0f (\SOR1) (20140424/utaddress-258)
(floppy is disabled in the bios)
or here:
Code:
[   17.579448] cfg80211: World regulatory domain updated:
[   17.579453] cfg80211:  DFS Master region: unset
[   17.579454] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   17.579456] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
[   17.579458] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
[   17.579459] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm), (N/A)
[   17.579461] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
[   17.579462] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
[   18.655018] floppy0: no floppy controllers found
[   24.427428] init: failsafe main process (723) killed by TERM signal
[   29.458732] init: Failed to spawn bluetooth main process: unable to execute: No such file or directory
[   32.905733] init: cinnamon main process (1080) terminated with status 127
[   33.226665] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2561s.bin'
[   33.468729] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.8
I have no bluetooth devices at all.
and also:
Code:
[   37.982449] init: samba-ad-dc main process (1245) terminated with status 1
How can I completely disable samba-ad-dc?

This is a fresh new Linux Mint 17.2 Rafaela
thanks...
 
Old 11-01-2015, 10:21 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
it all looks pretty normal to me.
obviously there's a few things you can uninstall, but don't break your system (and i doubt it will influence boot times more than microseconds)
45s doesn't seem too long... what are your hardware specs?

if linuxmint uses systemd, it's possible to create a bootchart. i forget how, just search "systemd bootchart".

Last edited by ondoho; 11-01-2015 at 10:22 AM.
 
Old 11-01-2015, 10:31 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Original Poster
Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
8 GB RAM, 3 cores amd with a normal HDD (no ssd).
bootchart was installed but somehow that did not work, so removed.
 
Old 11-01-2015, 10:39 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
oh sorry, i missed that you are pointing out delays.

10s between mounting the file system (or sth else?) and starting systemd... seems severe.
you should get more info on that.
systemd has another, non-graphical method that basically does the same: systemd-analyze (with lots of options).

the other thing, well, obviously i'd try to blacklist the floppy driver.
although i never had this sort of problem with it.
 
Old 11-01-2015, 11:44 AM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
You could roll your own kernel to eliminate all the probing for hardware you do not have.
 
Old 11-02-2015, 01:46 AM   #6
ShvonderSiN
LQ Newbie
 
Registered: May 2015
Location: Russia
Distribution: Linux Mint Cinnamin, Mate
Posts: 16

Rep: Reputation: Disabled
Maybe this article will help speed up the boot on your system
The acceleration of Linux mint and similar
 
Old 11-02-2015, 01:52 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Original Poster
Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
Quote:
Originally Posted by Emerson View Post
You could roll your own kernel to eliminate all the probing for hardware you do not have.
Oh yes, that would be the last thing I wanted to try, but probably there is no other way....

Some technical details:
MoBo: http://www.gigabyte.com/products/pro...px?pid=3587#ov
CPU: something like this: AMD Athlon II X3 450
2 HDDs, no SSD, wifi (no lan)
8 GB RAM
no CD/DVD/bluetooth/floppy/whatever
a relatively new ATI Radeon video.

To ondoho (or anyone):
how can I have more info?
blacklisting has no any effect.
 
Old 11-02-2015, 09:02 AM   #8
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
The first 2 things I can think of to speed up booting are:
1) autologin - so you don't have to enter your password
2) Set Grub to boot after 1 second instead of 5 seconds, which is the default.
Code:
gksu gedit /etc/default/grub
Set these parameters:
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=1

And change the line
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="quiet profile"
(Personally, I get rid of the word "quiet". But that is personal preference...)
What this does is profile your boot process to record what files are accessed and then sorts them according to how they are stored on your drive. Your first boot after doing this will be slow. Your next boot should be considerably faster.

You have to run
Code:
sudo update-grub
after making changes to the /etc/default/grub file.

Of course, you can always disable startup programs that you don't need.
For instance, when you don't have a scanner, you can disable saned. And if you never use bluetooth, you can disable bluetooth as well.
Other candidates are Apache2, PostGreSQL daemon, MySQL, virtual box (et al)

You can access the Startup Applications Preferences in Mint with Menu > Preferences > Startup Applications.
Unfortunately, Mint hides many of the Startup Applications from that GUI. But you can "un-hide" them by first running the command:
Code:
sudo sed -i 's/NoDisplay=true/NoDisplay=false/g' /etc/xdg/autostart/*.desktop
If you don't have bluetooth, you don't need an onscreen keyboard, you don't need to share files from your computer to other computers in your house, you won't be logging in using different languages, and you won't be logging in remotely, then you can respectively disable the following applications.
Bluetooth Manager
Caribou
Personal File Sharing
User folders update
Xhost +
If you don't have network devices you need to connect to, or Windows or Apple computers you need to interact with in your home, then you can disable some services also:
echo manual | sudo tee -a /etc/init/avahi-daemon.override
echo manual | sudo tee -a /etc/init/bluetooth.override
echo manual | sudo tee -a /etc/init/nmbd.override
echo manual | sudo tee -a /etc/init/smbd.override

Last edited by TxLonghorn; 11-02-2015 at 09:11 AM.
 
Old 11-02-2015, 03:19 PM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by pan64 View Post
To ondoho (or anyone):
how can I have more info?
Code:
man systemd-analyze
 
Old 05-01-2016, 01:36 PM   #10
snook
LQ Newbie
 
Registered: Sep 2015
Posts: 2

Rep: Reputation: Disabled
check your swappiness with in terminal
$ cat /proc/sys/vm/swappiness
60
should be as above with swappiness=60

Try reducing the Swappiness.
in /etc/sysctl.conf
at the end of file add

# reduces the swappiness
vm.swappiness=10

save file restart computer will take the same
amount of time the first time. But with the amount
of ram you have it will be quicker.

I do this second after I update the system.
 
Old 05-02-2016, 06:48 AM   #11
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
If you're not using samba you could uninstall it, for example, and I know I always remove avahi-daemon. You mention Bluetooth that's a few packages you could get rid of also.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to speed up Linux Booting process jsaravana87 Linux - Software 5 08-15-2013 09:20 AM
Solved Internet speed with linux mint . ronlau9 Linux - Distributions 2 02-20-2012 04:14 AM
Sabayon speed up boot process AustinMarton Linux - Laptop and Netbook 0 11-13-2007 02:33 AM
How can I speed up the boot process on 2005 LE? amdrake Mandriva 7 07-17-2005 11:55 PM
How to speed-up boot process? registering Mandriva 4 04-21-2005 02:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 12:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration