[SOLVED] Slow boot after logging in, and so on

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Mornagest

[SOLVED] Slow boot after logging in, and so on

Post by Mornagest »

Hi,

I use Linux Mint on my office computer and in order to have a secured and up-to-date OS, I upgraded from 18.3 to 19 (Tara) this morning. Since then, I experience a slow boot after I log in : it takes about thirty seconds to display my desktop, before the upgrade it took less than ten.

The same slowdown is present when I perform some basic tasks, such as typing some commands in my terminal. For example, when I ask my term to make a "sudo apt update", I must wait about twenty seconds just to be able to type my password. Or when I want to shut down the computer, it takes about thirty seconds to display the shut down options (reboot, disconnect, and so on).

I must clarify that I haven't met those troubles before.

As I read on the forum, I ran some commands and here are the results :

Code: Select all

inxi -Fxz
System:    Host: lyp0307 Kernel: 4.15.0-32-generic x86_64 bits: 64 gcc: 7.3.0
           Desktop: Cinnamon 3.8.8 (Gtk 3.22.30-1ubuntu1) Distro: Linux Mint 19 Tara
Machine:   Device: desktop System: Dell product: Precision T1700 v: 01 serial: N/A
           Mobo: Dell model: 073MMW v: A03 serial: N/A BIOS: Dell v: A08 date: 04/25/2014
CPU:       Quad core Intel Core i5-4570 (-MCP-) arch: Haswell rev.3 cache: 6144 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 25540
           clock speeds: max: 3600 MHz 1: 1159 MHz 2: 984 MHz 3: 1055 MHz 4: 1069 MHz
Graphics:  Card-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller bus-ID: 00:02.0
           Card-2: NVIDIA GF119 [NVS 310] bus-ID: 01:00.0
           Display Server: x11 (X.Org 1.19.6 ) drivers: modesetting,nvidia (unloaded: fbdev,vesa,nouveau)
           Resolution: 1280x1024@60.02hz
           OpenGL: renderer: NVS 310/PCIe/SSE2 version: 4.6.0 NVIDIA 390.48 Direct Render: Yes
Audio:     Card-1 Intel 8 Series/C220 Series High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Card-2 Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller
           driver: snd_hda_intel bus-ID: 00:03.0
           Card-3 NVIDIA GF119 HDMI Audio Controller driver: snd_hda_intel bus-ID: 01:00.1
           Sound: Advanced Linux Sound Architecture v: k4.15.0-32-generic
Network:   Card: Intel Ethernet Connection I217-LM driver: e1000e v: 3.2.6-k port: f080 bus-ID: 00:19.0
           IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:    HDD Total Size: 500.1GB (34.1% used)
           ID-1: /dev/sda model: ST500DM002 size: 500.1GB
Partition: ID-1: / size: 74G used: 20G (28%) fs: ext4 dev: /dev/sda1
           ID-2: /home size: 378G used: 133G (38%) fs: ext4 dev: /dev/sda6
           ID-3: swap-1 size: 8.00GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 31.0C mobo: 27.8C gpu: 0.0:40C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 216 Uptime: 5 min Memory: 1148.3/7885.6MB Init: systemd runlevel: 5 Gcc sys: 7.3.0
           Client: Shell (bash 4.4.191) inxi: 2.3.56 

Code: Select all

systemd-analyze blame
          8.273s NetworkManager-wait-online.service
          7.886s dev-sda1.device
          7.236s lvm2-monitor.service
          6.317s keyboard-setup.service
          6.160s user@1620.service
          6.062s systemd-tmpfiles-setup-dev.service
          5.508s systemd-sysctl.service
          4.629s sssd.service
          4.207s gpu-manager.service
          2.726s udisks2.service
          2.603s NetworkManager.service
          2.549s ubuntu-system-adjustments.service
          2.501s systemd-fsck@dev-disk-by\x2duuid-d41c2393\x2d1a5a\x2d433e\x2db61a\x2dd1423c54f476.service
          2.095s ModemManager.service
          1.410s grub-common.service
          1.313s virtualbox-guest-utils.service
          1.148s loadcpufreq.service
           925ms speech-dispatcher.service
           854ms systemd-resolved.service
           748ms systemd-modules-load.service
           729ms avahi-daemon.service
           725ms systemd-journal-flush.service
           648ms wpa_supplicant.service
           619ms console-kit-log-system-start.service
           592ms alsa-restore.service
           585ms pppd-dns.service
           582ms rsyslog.service
           567ms systemd-udev-trigger.service
           560ms lm-sensors.service
           478ms smbd.service
           399ms colord.service
           395ms systemd-random-seed.service
           383ms resolvconf-pull-resolved.service
           380ms systemd-journald.service
           372ms blk-availability.service
           299ms home.mount
           270ms kmod-static-nodes.service
           254ms networking.service
           245ms ssh.service
           234ms systemd-timesyncd.service
           224ms lightdm.service
           223ms plymouth-quit-wait.service
           218ms accounts-daemon.service
           200ms systemd-logind.service
           189ms systemd-tmpfiles-setup.service
           175ms dev-disk-by\x2duuid-cd119948\x2d845a\x2d476e\x2d82c6\x2d5727aa06bc95.swap
           169ms dev-mqueue.mount
           169ms ufw.service
           166ms systemd-remount-fs.service
           129ms plymouth-read-write.service
           124ms systemd-udevd.service
           108ms polkit.service
           104ms upower.service
            90ms ntp.service
            79ms plymouth-start.service
            78ms binfmt-support.service
            75ms systemd-update-utmp.service
            69ms setvtrgb.service
            58ms nmbd.service
            33ms rtkit-daemon.service
            10ms ureadahead-stop.service
             9ms nvidia-persistenced.service
             8ms fusioninventory-agent.service
             7ms cpufrequtils.service
             7ms hddtemp.service
             3ms dns-clean.service
             3ms sys-kernel-debug.mount
             3ms systemd-update-utmp-runlevel.service
             3ms proc-sys-fs-binfmt_misc.mount
             2ms console-setup.service
             2ms dev-hugepages.mount
             2ms systemd-user-sessions.service
             1ms resolvconf.service
             1ms sys-fs-fuse-connections.mount
             1ms sys-kernel-config.mount
             1ms openvpn.service

Code: Select all

systemd-analyze
Startup finished in 6.063s (kernel) + 27.433s (userspace) = 33.497s
graphical.target reached after 27.429s in userspace
Any idea ?

Thank you very much in advance ! 8)
Last edited by Mornagest on Thu Sep 06, 2018 4:08 am, edited 1 time in total.
User avatar
karlchen
Level 23
Level 23
Posts: 18206
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Slow boot after logging in, and so on

Post by karlchen »

Hello, Mornagest.
Mornagest wrote: Fri Aug 17, 2018 9:06 amI upgraded from 18.3 to 19 (Tara) this morning.
Please, explain how precisely you executed the upgrade from Mint 18.3 to Mint 19.
  • Did you boot your machine from the Mint 19 live system and did a clean installation of Mint 19, overwriting the previous OS?
  • Did you do an in-place upgrade from Mint 18.3 to Mint 19 and followed Clem's tutorial here: How to upgrade to Linux Mint 19
  • Did you do it in yet another way?
One thing which I noticed in your inxi report. Your system loads both, the Intel graphics driver modesetting and the proprietary Nvidia driver nvidia-390. Did your system do the same, when it still ran on Mint 18.3? I mean load both drivers, modesetting and nvidia?

Regards,
Karl
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 771 days now.
Lifeline
Mornagest

Re: Slow boot after logging in, and so on

Post by Mornagest »

Hello Karichen,

I executed the command mintupgrade upgrade. I follow the requirements (Timeshift and so on) and it began downloading new packages then it ran normally (unpacking, configuring..). I had to run apt install -f then mintupgrade upgrade a second time since some packages did not configure by themselves.

At this time I lost my display and got a black screen. I waited a long time to be sure the process was finished, rebooted and everything seemed to be OK, except those slowdowns.

Thank you for your answer !

edit : I just tried with nVidia drivers a few minutes ago to be sure the slowdowns wouldn't come from the Nouveau drivers but it changed nothing.
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Slow boot after logging in, and so on

Post by Flemur »

You very probably don't need this one unless you connect to the internet in a strange way:

Code: Select all

          8.273s NetworkManager-wait-online.service
sudo systemctl disable NetworkManager-wait-online.service

You also have the "everything takes far longer - 10 to 20X longer - to start than it should w/Cinnamon" syndrome. I have no idea what causes it or how to fix it.

For example:
Yours: 6.317s keyboard-setup.service
My 8 year old machine: 165ms keyboard-setup.service
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
User avatar
karlchen
Level 23
Level 23
Posts: 18206
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: Slow boot after logging in, and so on

Post by karlchen »

I still suspect that the long duration for the userpsace startup might be related to the 2 graphics drivers in use, modeseting for Intel and nvidia-390 for NVidia.
I suggest checking the 2 logfiles
/var/log/syslog
/var/log/Xorg.0.log
and checking for errors and delays. Delays can be found by paying attention to the timestamps of the logged events.
Image
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 771 days now.
Lifeline
Mornagest

Re: Slow boot after logging in, and so on

Post by Mornagest »

OK, thank you for your answers :)

I'll try this next week, as I came back home until Monday.

To be continued...
Mornagest

Re: Slow boot after logging in, and so on

Post by Mornagest »

Hi,

I removed the nVidia drivers as they were not a solution to my problem. No change regarding the boot delay after login.

About this :
Flemur wrote:NetworkManager-wait-online.service
Can I be sure I don't need this particular service ? As it is for my computer at work, I'm not completely sure how it is connected to the network.

The logs asked are too big, I join them with my post ; sorry :oops:
Mornagest

Re: Slow boot after logging in, and so on

Post by Mornagest »

In addition, to be sure it wouldn't come from Cinnamon, I freshly intalled Xfce (no previous config directory) and it also takes about thirty seconds to display the desktop after loging in.

I'm quite lost... :?:
Mornagest

Re: Slow boot after logging in, and so on

Post by Mornagest »

Another small test : when I do

nano test

in a terminal, nano opens rather immediatly. If I do

sudo nano test

it takes maybe ten seconds to ask my password. Then it opens after some seconds. If I already entered my password for this terminal session, it still takes several seconds to open.

Surprising...
Mornagest

Re: Slow boot after logging in, and so on

Post by Mornagest »

Does anyone have an idea ?

Thanks :)
Mornagest

Re: Slow boot after logging in, and so on

Post by Mornagest »

OK, I had to ask our computer specialists at work to re-install Linux Mint as they didn't experiment this bug on their machines, although they migrated from LM 17 to LM 18 then 19.

Now that works fine for me ;)
arrism

Re: [SOLVED] Slow boot after logging in, and so on

Post by arrism »

First post here. I had this 30 seconds delay after login (black screen, only showing mouse pointer which i could move). I disabled Cinnamon Settings Daemon - xrandr from startup applications (which i am not sure it was there before editing monitors.xml and messing with nvidia settings, trying to enable 75 hz for my new monitor) and it is fixed. No more delay.
Locked

Return to “Installation & Boot”