[SOLVED]startup takes much time

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED]startup takes much time

Postby pabbuu28 » Dec 8th, '20, 14:53

Hello

I am using xfce desktop
Actually boot of the system takes 1min31 seconds but systemd-analyze shows 31seconds

Here the list of running services, which of them i could disable, as i am using laptop and it take too long at startup "checking for new hardware"?
Code: Select all
UNIT                         LOAD   ACTIVE SUB     DESCRIPTION
accounts-daemon.service      loaded active running Accounts Service
acpid.service                loaded active running ACPI Event Daemon
alsa-state.service           loaded active running Manage Sound Card State (rest
avahi-daemon.service         loaded active running Avahi mDNS/DNS-SD Stack
cpupower.service             loaded active exited  Configure CPU power related s
dbus.service                 loaded active running D-Bus System Message Bus
dkms-autorebuild.service     loaded active exited  run dkms_autoinstaller on eve
dracut-shutdown.service      loaded active exited  Restore /run/initramfs on shu
fedora-readonly.service      loaded active exited  Configure read-only root supp
fedora-storage-init-late.service loaded active exited  Initialize storage subsys
fedora-storage-init.service  loaded active exited  Initialize storage subsystems
fedora-wait-storage.service  loaded active exited  Wait for storage scan
gpm.service                  loaded active running Console Mouse manager
gssproxy.service             loaded active running GSSAPI Proxy Daemon
irqbalance.service           loaded active running irqbalance daemon
kmod-static-nodes.service    loaded active exited  Create list of required stati
mandi.service                loaded active running Network monitoring daemon (In
mandriva-everytime.service   loaded active exited  Reconfigure the system on adm
mandriva-save-dmesg.service  loaded active exited  Save boot dmesg content
mdmonitor-takeover.service   loaded active exited  Software RAID Monitor Takeove
msec.service                 loaded active exited  LSB: Enables MSEC security po
network-up.service           loaded active exited  LSB: Wait for the hotplugged
network.service              loaded active running LSB: Bring up/down networking
partmon.service              loaded active exited  LSB: Checks if a partition is
polkit.service               loaded active running Authorization Manager
prefdm.service               loaded active running Display Manager
preload.service              loaded active running LSB: Adaptive readahead daemo
resolvconf.service           loaded active exited  LSB: Nameserver information m
rpcbind.service              loaded active running RPC bind service
rtkit-daemon.service         loaded active running RealtimeKit Scheduling Policy
systemd-backlight@backlight:acpi_video0.service loaded active exited  Load/Save
systemd-fsck-root.service    loaded active exited  File System Check on Root Dev
systemd-fsck@dev-disk-by\x2duuid-9032c72a\x2dafc1\x2d466c\x2db02f\x2d36f4884588e
systemd-journal-flush.service loaded active exited  Flush Journal to Persistent
systemd-journald.service     loaded active running Journal Service
systemd-logind.service       loaded active running Login Service
systemd-modules-load.service loaded active exited  Load Kernel Modules
systemd-networkd.service     loaded active running Network Service
systemd-random-seed.service  loaded active exited  Load/Save Random Seed
systemd-remount-fs.service   loaded active exited  Remount Root and Kernel File
systemd-resolved.service     loaded active running Network Name Resolution
systemd-sysctl.service       loaded active exited  Apply Kernel Variables
systemd-tmpfiles-setup-dev.service loaded active exited  Create Static Device No
systemd-tmpfiles-setup.service loaded active exited  Create Volatile Files and D
systemd-udev-settle.service  loaded active exited  udev Wait for Complete Device
systemd-udev-trigger.service loaded active exited  udev Coldplug all Devices
systemd-udevd.service        loaded active running udev Kernel Device Manager
systemd-update-utmp.service  loaded active exited  Update UTMP about System Boot
systemd-user-sessions.service loaded active exited  Permit User Sessions
systemd-vconsole-setup.service loaded active exited  Setup Virtual Console
udisks2.service              loaded active running Disk Manager
upower.service               loaded active running Daemon for power management
user@1000.service            loaded active running User Manager for UID 1000
xinetd.service               loaded active running Xinetd A Powerful Replacement


and which of this applications at startup i can disable in the screenshot
Screenshot_2020-12-08_17-49-56.png
Screenshot_2020-12-08_17-49-56.png (134.24 KiB) Viewed 1255 times




Regads
Jasur
Last edited by pabbuu28 on Dec 12th, '20, 15:15, edited 2 times in total.
pabbuu28
 
Posts: 25
Joined: Jan 8th, '19, 18:10
Location: Tashkent, Uzbekistan

Re: startup takes much time

Postby doktor5000 » Dec 8th, '20, 18:25

The list of currently running services is not really helpful with what happened during boot.

It would be helpful if you could at least provide the outputs as root of
Code: Select all
systemd-analyze blame | head
systemd-analyze critical-chain
systemd-analyze plot > boot.svg

and then later attach the file boot.svg here.

For the "checking for new hardware" you could try disabling the respective service, as root via
Code: Select all
systemctl mask mandriva-everytime.service
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: startup takes much time

Postby pabbuu28 » Dec 8th, '20, 18:39

Code: Select all
systemd-analyze blame | head
         10.254s network-up.service
          7.489s systemd-udev-settle.service
          5.411s dev-sda1.device
          5.143s systemd-journal-flush.service
          4.386s mandriva-everytime.service
          3.126s upower.service
          2.607s systemd-logind.service
          2.584s gssproxy.service
          2.577s mga-bg-res.service
          2.577s acpid.service


Code: Select all
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 @30.148s
└─preload.service @29.620s +527ms
  └─prefdm.service @29.619s
    └─systemd-user-sessions.service @29.415s +105ms
      └─network.target @29.410s
        └─network-up.service @19.155s +10.254s
          └─basic.target @16.576s
            └─mandriva-everytime.service @12.189s +4.386s
              └─dkms-autorebuild.service @11.178s +1.009s
                └─local-fs.target @11.171s
                  └─fedora-storage-init-late.service @11.095s +75ms
                    └─fedora-storage-init.service @10.577s +515ms
                      └─fedora-wait-storage.service @10.561s +13ms
                        └─systemd-udev-settle.service @3.069s +7.489s
                          └─systemd-udev-trigger.service @2.816s +251ms
                            └─system.slice @1.465s
                              └─-.slice @1.376s


boot.svg
boot.svg
(96.66 KiB) Downloaded 84 times
Last edited by doktor5000 on Dec 8th, '20, 19:41, edited 1 time in total.
Reason: added code tags
pabbuu28
 
Posts: 25
Joined: Jan 8th, '19, 18:10
Location: Tashkent, Uzbekistan

Re: startup takes much time

Postby doktor5000 » Dec 8th, '20, 19:44

I don't see any unusual delays, and overall it takes a little over 30s until graphical target is reached.

From when to when do you measure that 1min31 seconds ? And what bootloader do you use?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: startup takes much time

Postby pabbuu28 » Dec 8th, '20, 20:17

from screen where you can choose OS till appearing xfce desktop. And for bootloader i am using grub
pabbuu28
 
Posts: 25
Joined: Jan 8th, '19, 18:10
Location: Tashkent, Uzbekistan

Re: startup takes much time

Postby pabbuu28 » Dec 8th, '20, 20:31

Code: Select all
systemctl mask mandriva-everytime.service
[/quote]
reduced time, now it is 1min6seconds

One thing i forgot to tell, that at booting OS the NVIDIA screen appears also as i have nvidia videocard, after that xfce desktop loads.

And such error is at startup:
[FAILED] Failed to start Load legacy module configuration.
See 'systemctl status fedora-loadmodules.service' for details.

after checking error is that modprobe could not insert hdap module
pabbuu28
 
Posts: 25
Joined: Jan 8th, '19, 18:10
Location: Tashkent, Uzbekistan

Re: startup takes much time

Postby doktor5000 » Dec 9th, '20, 22:35

Can you please attach a full log after a fresh boot, as root run
Code: Select all
journalctl -ab > /tmp/journal.log
after logging in to XFCE and then attach /tmp/journal.log here.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: startup takes much time

Postby pabbuu28 » Dec 11th, '20, 15:50

journal.log
(115.35 KiB) Downloaded 64 times
pabbuu28
 
Posts: 25
Joined: Jan 8th, '19, 18:10
Location: Tashkent, Uzbekistan

Re: startup takes much time

Postby doktor5000 » Dec 11th, '20, 17:39

Well the log begins at Dec 11 18:46:02 and graphical login begins at Dec 11 18:46:39, I don't see any unusual delays there.

Also, directly before login:
Dec 11 18:46:28 localhost.localdomain systemd[1]: Startup finished in 3.724s (kernel) + 27.453s (userspace) = 31.178s.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: startup takes much time

Postby pabbuu28 » Dec 12th, '20, 15:15

I see, perhaps this is because of old hardware on the laptop then. By the way thank you very much
doktor5000
, i learned new commands. We can close this post. Thank you again.
pabbuu28
 
Posts: 25
Joined: Jan 8th, '19, 18:10
Location: Tashkent, Uzbekistan


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest