Linux Lite Forums

Software - Support => Other => Topic started by: TMG1961 on July 19, 2015, 03:50:23 PM

Title: booting up taking longer over time
Post by: TMG1961 on July 19, 2015, 03:50:23 PM
I noticed that the time it takes for my laptop to boot is much longer then it was just after a fresh install.
In the beginning it booted up quickly but now it takes much longer, at the end of the boot i have to wait several (about 10) seconds with a black screen before i see the desktop and can use the laptop.


Is this normal or is my laptop starting to get old?
Title: Re: booting up taking longer over time
Post by: rokytnji on July 19, 2015, 03:58:14 PM
Might look at /var/log/boot for any info you need.
Title: Re: booting up taking longer over time
Post by: TMG1961 on July 19, 2015, 04:07:14 PM
Might look at /var/log/boot for any info you need.

that file is empty
Title: Re: booting up taking longer over time
Post by: Jerry on July 19, 2015, 04:21:49 PM
Look at Menu, Settings, Session and Startup. Application Autostart tab. Screenshot for us all the apps that auto start at boot.
Title: Re: booting up taking longer over time
Post by: TMG1961 on July 19, 2015, 04:47:34 PM
(http://i919.photobucket.com/albums/ad37/TMG1961/screenshot.jpg)
Title: Re: booting up taking longer over time
Post by: Jerry on July 19, 2015, 11:45:02 PM
Start with USB devices. Before you turn on your pc, unplug every USB device. Then boot up.
Title: Re: booting up taking longer over time
Post by: TMG1961 on July 20, 2015, 03:32:23 AM
Start with USB devices. Before you turn on your pc, unplug every USB device. Then boot up.

The only usb device i have plugged in during boot is the mouse.


Edit: I timed the complete bootup. From pushing the power button untill complete booted up took 95 seconds. It took 70 seconds untill the screen went black. From the moment i saw black screen up to completed bootup (visible desktop) took 25 seconds.
Title: Re: booting up taking longer over time
Post by: N4RPS on July 20, 2015, 04:52:37 AM
Hello!

I'd look at what's autostarting at boot...

73 DE N4RPS
Rob
Title: Re: booting up taking longer over time
Post by: TMG1961 on July 20, 2015, 05:09:12 AM
Hello!

I'd look at what's autostarting at boot...

73 DE N4RPS
Rob


I added the screenshot of whats is checked in autostart. There are only 7 items checked.

Title: Re: booting up taking longer over time
Post by: shaggytwodope on July 20, 2015, 05:33:41 AM
Since your mentioning it's black screen before the desktop shows up. Install a tool called bootchart, and reboot your system once or twice.

Code: [Select]
sudo apt-get install bootchart

Then you ofc reboot your machine

The boot chart image will appear in /var/log/bootchart/*.png with the username and host + the date as the file name.

You can safety remove bootchart after sharing the generated .png file with us to review, and see if something there is the cause of the slow down for you.
Title: Re: booting up taking longer over time
Post by: TMG1961 on July 20, 2015, 05:58:02 AM
Since your mentioning it's black screen before the desktop shows up. Install a tool called bootchart, and reboot your system once or twice.

Code: [Select]
sudo apt-get install bootchart

Then you ofc reboot your machine

The boot chart image will appear in /var/log/bootchart/*.png with the username and host + the date as the file name.

You can safety remove bootchart after sharing the generated .png file with us to review, and see if something there is the cause of the slow down for you.

done that but it doesnt generate the png file. The bootchart folder is empty
Title: Re: booting up taking longer over time
Post by: shaggytwodope on July 20, 2015, 06:25:21 AM
Since your mentioning it's black screen before the desktop shows up. Install a tool called bootchart, and reboot your system once or twice.

Code: [Select]
sudo apt-get install bootchart

Then you ofc reboot your machine

The boot chart image will appear in /var/log/bootchart/*.png with the username and host + the date as the file name.

You can safety remove bootchart after sharing the generated .png file with us to review, and see if something there is the cause of the slow down for you.

done that but it doesnt generate the png file. The bootchart folder is empty

After one or two reboots? And did you do it right away or wait a moment. It may have a slight delay in it's generation.
Title: Re: booting up taking longer over time
Post by: Wirezfree on July 20, 2015, 06:44:45 AM
Hi shaggytwodope,

I had some notes on this from a while back,
do you also need..??

Code: [Select]
apt-get install pybootchartgui
Dave
Title: Re: booting up taking longer over time
Post by: shaggytwodope on July 20, 2015, 06:51:04 AM
Hi shaggytwodope,

I had some notes on this from a while back,
do you also need..??

Code: [Select]
apt-get install pybootchartgui
Dave

Indeed you do, I forgot about that package lol. Bit late for me, and on meds >.<


@TMG1961 you also need that package mentioned. Sorry about that.
Title: Re: booting up taking longer over time
Post by: Wirezfree on July 20, 2015, 06:56:25 AM
O.K, see if that helps TMG1961
Title: Re: booting up taking longer over time
Post by: TMG1961 on July 20, 2015, 07:40:38 AM
strange..i did the folowing


Installed bootchart, installed pybootchartgui but the bootchart folder remains empty.
Did 3 restarts, even did shutdown the laptop completely and rebooted but still notting in bootchart folder.


Title: Re: booting up taking longer over time
Post by: Jerry on July 20, 2015, 08:20:07 AM
Press F4 during boot to see the text boot. You should then see where it's pausing or taking longer.

Sent from my Nexus 6 using Tapatalk

Title: Re: booting up taking longer over time
Post by: Wirezfree on July 20, 2015, 09:16:38 AM
strange..i did the folowing

Installed bootchart, installed pybootchartgui but the bootchart folder remains empty.
Did 3 restarts, even did shutdown the laptop completely and rebooted but still notting in bootchart folder.

I just installed and tested on one of my PC's, it took about 60secs to appear in the bootchart folder.

(http://i.imgur.com/PjckmIy.png)
Title: Re: booting up taking longer over time
Post by: TMG1961 on July 20, 2015, 10:01:14 AM
Finally got the bootchart.png file

Now just need to figure out how to show it here in a way that is is readable

(http://i.imgur.com/xgBK4NR.png)
Title: Re: booting up taking longer over time
Post by: Wirezfree on July 20, 2015, 02:38:14 PM
I'm not an expert,
but it looks like you have a slow hard drive, and that is creating a lot, almost constant disk(I/O) activity.
I realise I have an SSD, but if you look at my graph, I have bursts of activity.

Whilst it appears to be insignificant you appear to have Teamviewer auto starting.

Are you connecting to any network shares automatically.??
There is a process gvfsd-smb-brows which seems to take a lot of CPU
Not sure why..??
If you are on WiFi, it maybe slow/struggling, Can you do a test on a Ethernet cable

Maybe somebody else can spot something else.
Try Googling some of the items that appear to take a long time, or use a lot of CPU

GL... Dave
Title: Re: booting up taking longer over time
Post by: TMG1961 on July 20, 2015, 03:46:50 PM
The harddrive is old and should have been retired ages ago but instead it is still trying to do its best.
I dont use wifi, got the laptop hooked up to a ethernet cable.
Why the process gvfsd-smb-browse takwes alot of cpu i dont know either, dont even have a clue what it is and if i actually need it.
Title: Re: booting up taking longer over time
Post by: Wirezfree on July 20, 2015, 03:59:11 PM
Hi,

O.K on being on cable, I believe the gvfsd-smb-brows is to do with networking/shares.
Do you connect to any other PC's or to a NAS.?
Otherwise, not sure what else you can check/do.?
Title: Re: booting up taking longer over time
Post by: TMG1961 on July 20, 2015, 04:19:04 PM
Hi,

O.K on being on cable, I believe the gvfsd-smb-brows is to do with networking/shares.
Do you connect to any other PC's or to a NAS.?
Otherwise, not sure what else you can check/do.?

Connecting to notting else, only got 1 laptop and no other pc's or nas
As soon as the laptop is started up it works fine, its just that i noticed it is booting slower then after a fresh install, now it takes almost twice as long to boot up.
Title: Re: booting up taking longer over time
Post by: torreydale on July 14, 2016, 10:50:30 PM
This workaround taken from Brett Bogert at https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1409032 appears successful at getting the high CPU of gvfsd-smb-browse to disappear at login.  It worked for me.

Quote
After not be satisfied with any of the above workarounds to the problem
I decided to take a look at the problem and see if I could come up with
a "cleaner" workaround or fix.

I found that this problem occurs in Ubuntu 16.04 with Unity Gnome 3.18
GnomeShell Gnome 3.20, Budgie Gnome 3.18 and Fedora 24 Beta.

After some troubleshooting I found the following solution that does
not require changing executable permissions or removing packages:

1- Make a backup copy of the smb.conf file in /etc/samba.

2- Edit the /etc/samba/smb.conf file using your favorite editor
and add the following line under the "[global]" statement:

name resolve order = wins lmhosts bcast

The file should look like this:

[global]
name resolve order = wins lmhosts bcast

3- Save the file and reboot.

The problem should be fixed and you should notice that the
"Network" Icon and label shows up much quicker in your
file browser than before and the 100% CPU usage is gone.

Hope this helps.
Title: Re: booting up taking longer over time
Post by: Wirezfree on July 15, 2016, 10:57:43 AM
Interesting...
Since the beginning of my Linux use I had built a long list of things I do before usage...
This is my TODO on networking...

Linuxsmb: Networking

[ Y ] Check/Install ~ SAMBA GUI & Network Stuff
       > $ sudo apt-get install system-config-samba cifs-utils libnss-winbind winbind gvfs-backends
[ Y ] Open Linux Lite Help - Network Setup
[ Y ] Add "HOMENET" Workgroup, Samba Config file
[ Y ] Add "Resolver" order  & "Master Browser" items below netbios name:
          name resolve order = bcast host lmhosts wins
          local master = no
[ Y ] Re-start Networking
[ Y ] gksu leafpad /etc/nsswitch.conf
        Then change the line:
         hosts:          files mdns4_minimal [NOTFOUND=return] dns
         To this:
         hosts:          files mdns4_minimal [NOTFOUND=return] wins dns
         Then re-boot
[ Y ] Use SAMBA Gui, set up the /Public" to "PubShare" To be visible on other PC's.
       Change Share Settings with SAMBA GUI Tool