Author Topic: P7: Removing Samba made shutdown very slow ( from 2 secs to 58 secs)  (Read 3045 times)

Offline berliner58

  • Member
  • ***
  • Posts: 68
  • Karma: 7
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 8
Re: P7: Removing Samba made shutdown very slow ( from 2 secs to 58 secs)
« Reply #15 on: October 12, 2016, 12:15:15 am »
I tested it, but the boot still takes 32 seconds.
Edit: I removed apparmor, now booting takes about 29 seconds.

systemd-analyze critical-chain
Code: [Select]
franz@franz-Inspiron-560 ~ $ systemd-analyze critical-chain
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.

graphical.target @24.420s
└─multi-user.target @24.420s
  └─smbd.service @24.114s +305ms
    └─nmbd.service @22.426s +1.671s
      └─network-online.target @22.412s
        └─NetworkManager-wait-online.service @13.957s +8.455s
          └─NetworkManager.service @10.973s +2.963s
            └─dbus.service @10.488s
              └─basic.target @10.401s
                └─paths.target @10.401s
                  └─systemd-networkd-resolvconf-update.path @10.401s
                    └─sysinit.target @10.341s
                      └─systemd-update-utmp.service @10.207s +133ms
                        └─systemd-tmpfiles-setup.service @10.069s +117ms
                          └─local-fs.target @10.032s
                            └─home.mount @9.986s +46ms
                              └─systemd-fsck@dev-disk-by\x2duuid-fcd68866\x2d701
                                └─local-fs-pre.target @9.572s
                                  └─lvm2-monitor.service @1.693s +7.879s
                                    └─lvm2-lvmetad.service @2.474s
lines 1-23

I don't understand why it takes 9 seconds for the lvm2-monitor.service.
When I install a linux-OS, I never ever select the option to use  lvm , so the lvm2-monitor.service waits in vain, or am I wrong ?

I have the impression that I cannot reduce the NetworkManager-wait-online.service, so those 9 seconds must be accepted ?

Here is systemd-anazlyze blame
Spoiler (click here to view / hide)
[close]
« Last Edit: October 13, 2016, 01:05:49 am by berliner58 »
P8 x64 Desktop Dual core Pentium E5400 (-MCP-) RAM: 8GB