[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Debian testing is very slow on statup (boot), after upgrade to bookworm



After upgrade to bookworm, debian presented so slow to boot. Is it
possible to disable some boot process? Is it another trick that I could
do to make it more fast on boot? 

After boot, I see that some applications is so slow to start, like
nautilus, libreoffice, gnome-terminal, etc.

Here is some systemd-analyze output.

systemd-analyze blame

51.972s plymouth-quit-wait.service
24.524s docker.service
17.102s systemd-journal-flush.service
14.398s containerd.service
12.128s cups.service
10.211s NetworkManager-wait-online.service
 9.709s apache2.service
 8.966s udisks2.service
 6.558s ModemManager.service
 6.493s vboxdrv.service
 5.901s systemd-tmpfiles-clean.service
 5.022s accounts-daemon.service
 3.454s gdm.service
 3.374s exim4.service
 3.340s dev-sda2.device
 3.288s polkit.service
 3.268s switcheroo-control.service
 3.252s avahi-daemon.service
 3.250s bluetooth.service
 3.228s NetworkManager.service
 3.212s wpa_supplicant.service
 3.212s systemd-logind.service
 2.793s ssh.service
 2.564s systemd-resolved.service
 2.160s apparmor.service
 1.527s packagekit.service
 1.419s mono-xsp4.service
 1.417s fwupd-refresh.service
 1.308s rsyslog.service
 1.263s networking.service
 1.209s systemd-modules-load.service
 1.205s lm-sensors.service
 1.166s colord.service
 1.148s systemd-udevd.service
 1.107s apt-daily-upgrade.service
 1.048s user@1000.service
 1.048s fwupd.service
  911ms systemd-fsck@dev-disk-by\x2duuid-6A75\x2d358E.service
  881ms systemd-fsck@dev-disk-by\x2duuid-1ead2791\x2d92c2\x2d4a8d\x2dab98\x2da6>
  608ms systemd-tmpfiles-setup-dev.service
  437ms warsaw.service
  407ms binfmt-support.service
  339ms displaylink-driver.service
  335ms systemd-journald.service
  329ms upower.service
  314ms systemd-sysusers.service
  300ms dev-disk-by\x2duuid-6595d7a7\x2d4753\x2d4b35\x2d9342\x2d4388b146aea3.sw>
  269ms systemd-tmpfiles-setup.service
  254ms systemd-random-seed.service
  227ms keyboard-setup.service
  221ms modprobe@fuse.service
  218ms systemd-udev-trigger.service
  211ms dev-hugepages.mount
  209ms dev-mqueue.mount
  208ms sys-kernel-debug.mount
  208ms sys-kernel-tracing.mount
  198ms systemd-remount-fs.service
  197ms virtualbox.service
  193ms systemd-user-sessions.service
  181ms console-setup.service
  167ms plymouth-start.service
  149ms systemd-sysctl.service
  120ms ifupdown-pre.service
  110ms sys-kernel-config.mount
  100ms boot-efi.mount
  100ms systemd-timesyncd.service
   96ms kmod-static-nodes.service
   95ms home.mount
   89ms rtkit-daemon.service
   80ms vboxautostart-service.service
   79ms vboxballoonctrl-service.service
   79ms plymouth-read-write.service
   70ms proc-sys-fs-binfmt_misc.mount
   70ms e2scrub_reap.service
   57ms hddtemp.service
   54ms systemd-rfkill.service
   49ms vboxweb-service.service
   39ms modprobe@configfs.service
   22ms docker.socket
   21ms systemd-update-utmp.service
   11ms sys-fs-fuse-connections.mount
   10ms user-runtime-dir@1000.service
    9ms alsa-restore.service
    9ms modprobe@drm.service
    7ms systemd-update-utmp-runlevel.service
    7ms systemd-backlight@backlight:intel_backlight.service
    5ms systemd-backlight@leds:dell::kbd_backlight.service


inxi -Fxpmrz

System:
  Kernel: 5.14.0-2-amd64 x86_64 bits: 64 compiler: gcc v: 10.3.0
  Console: pty pts/0 Distro: Debian GNU/Linux bookworm/sid
Machine:
  Type: Portable System: Dell product: Inspiron 5547 v: A04 serial: <filter>
  Mobo: Dell model: 0K5C1C v: A00 serial: <filter> UEFI: Dell v: A04
  date: 05/09/2014
Battery:
  ID-1: BAT1 charge: 11.5 Wh (29.6%) condition: 38.9/59.9 Wh (64.9%)
  volts: 12.0 min: 11.1 model: SANYO DELL WYT3M94Q status: Charging
Memory:
  RAM: total: 11.58 GiB used: 5 GiB (43.2%)
  Array-1: capacity: 16 GiB slots: 2 EC: None max-module-size: 8 GiB
  Device-1: JDIMM1 size: 4 GiB speed: 1600 MT/s type: DDR3
  Device-2: JDIMM2 size: 8 GiB speed: 1600 MT/s type: DDR3
CPU:
  Info: Dual Core model: Intel Core i7-4510U bits: 64 type: MT MCP
  arch: Haswell rev: 1 cache: L2: 4 MiB
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  bogomips: 20752
  Speed: 1995 MHz min/max: 800/3100 MHz Core speeds (MHz): 1: 1995 2: 1997
  3: 2013 4: 1996
Graphics:
  Device-1: Intel Haswell-ULT Integrated Graphics vendor: Dell driver: i915
  v: kernel bus-ID: 00:02.0
  Device-2: AMD Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445 /
  530/535 / 620/625 Mobile]
  vendor: Dell driver: amdgpu v: kernel bus-ID: 03:00.0
  Device-3: Realtek Integrated_Webcam_HD type: USB driver: uvcvideo
  bus-ID: 3-1.8:6
  Display: server: X.org 1.20.11 driver: loaded: amdgpu,modesetting
  unloaded: vesa tty: 80x42
  Message: Advanced graphics data unavailable in console for root.
Audio:
  Device-1: Intel Haswell-ULT HD Audio vendor: Dell driver: snd_hda_intel
  v: kernel bus-ID: 00:03.0
  Device-2: Intel 8 Series HD Audio vendor: Dell driver: snd_hda_intel
  v: kernel bus-ID: 00:1b.0
  Sound Server-1: ALSA v: k5.14.0-2-amd64 running: yes
  Sound Server-2: PulseAudio v: 15.0 running: no
  Sound Server-3: PipeWire v: 0.3.40 running: yes
Network:
  Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: Dell
  driver: r8169 v: kernel port: 4000 bus-ID: 01:00.0
  IF: enp1s0 state: down mac: <filter>
  Device-2: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter
  vendor: Dell Vostro 3470 driver: ath9k v: kernel bus-ID: 02:00.0
  IF: wlp2s0 state: up mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
Bluetooth:
  Device-1: Qualcomm Atheros type: USB driver: btusb v: 0.8 bus-ID: 3-1.5:7
  Report: hciconfig ID: hci0 rfk-id: 2 state: down
  bt-service: enabled,running rfk-block: hardware: no software: yes
  address: <filter>
Drives:
  Local Storage: total: 931.51 GiB used: 1.39 TiB (152.6%)
  ID-1: /dev/sda vendor: Seagate model: ST1000LM014-1EJ164 size: 931.51 GiB
  temp: 34 C
Partition:
  ID-1: / size: 38.89 GiB used: 31.17 GiB (80.1%) fs: ext4 dev: /dev/sda2
  ID-2: /boot/efi size: 475.1 MiB used: 3.4 MiB (0.7%) fs: vfat
  dev: /dev/sda1
  ID-3: /home size: 869.84 GiB used: 694.98 GiB (79.9%) fs: ext4
  dev: /dev/sda4
  ID-4: /home/<filter>/Private size: 869.84 GiB used: 694.98 GiB (79.9%)
  fs: ecryptfs source: ERR-102
Swap:
  ID-1: swap-1 type: partition size: 7.45 GiB used: 14.1 MiB (0.2%)
  dev: /dev/sda3
Sensors:
  System Temperatures: cpu: 51.0 C mobo: N/A gpu: amdgpu temp: 52.0 C
  Fan Speeds (RPM): cpu: 4300
Repos:
  Packages: 4200
  Active apt repos in: /etc/apt/sources.list
  1: deb http://deb.debian.org/debian/ testing main non-free contrib
  2: deb-src http://deb.debian.org/debian/ testing main non-free contrib
  3: deb http://deb.debian.org/debian/ testing-updates main contrib non-free
  4: deb-src http://deb.debian.org/debian/ testing-updates main contrib non-free
  5: deb http://security.debian.org/debian-security testing-security main contrib non-free
  6: deb-src http://security.debian.org/debian-security testing-security main contrib non-free
  7: deb http://deb.debian.org/debian/ unstable main non-free contrib
  8: deb-src http://deb.debian.org/debian/ unstable main non-free contrib
  9: deb http://deb.debian.org/debian/ stable main non-free contrib
  10: deb-src http://deb.debian.org/debian/ stable main non-free contrib
  11: deb http://deb.debian.org/debian/ experimental main non-free contrib
  12: deb-src http://deb.debian.org/debian/ experimental non-free contrib
  13: deb http://ftp.de.debian.org/debian stretch main
  14: deb [trusted=yes] http://www.openprinting.org/download/printdriver/debian/ lsb3.2 main contrib main-nonfree
  15: deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian buster contrib
  16: deb [trusted=yes] https://cinelerra-gg.org/download/pkgs/debian10 buster main
  17: deb https://qgis.org/ubuntu bullseye main
  Active apt repos in: /etc/apt/sources.list.d/docker.list
  1: deb [arch=amd64] https://download.docker.com/linux/debian buster stable
  Active apt repos in: /etc/apt/sources.list.d/google-chrome.list
  1: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
  2: deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main
  No active apt repos in: /etc/apt/sources.list.d/google-earth-pro.list
  Active apt repos in: /etc/apt/sources.list.d/mono-official-stable.list
  1: deb https://download.mono-project.com/repo/debian stable-buster main
  2: deb https://download.mono-project.com/repo/debian buster main
  Active apt repos in: /etc/apt/sources.list.d/spotify.list
  1: deb http://repository.spotify.com stable non-free
  Active apt repos in: /etc/apt/sources.list.d/teams.list
  1: deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main
Info:
  Processes: 257 Uptime: 8h 26m Init: systemd runlevel: 5 Compilers:
  gcc: 11.2.0 Shell: Bash v: 5.1.8 inxi: 3.3.07


systemd-analyze

Startup finished in 5.040s (kernel) + 1min 16.605s (userspace) = 1min 21.646s 
graphical.target reached after 1min 16.145s in userspace


systemd-analyze critical-chain

The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.

graphical.target @1min 16.145s
└─multi-user.target @1min 16.145s
  └─plymouth-quit-wait.service @24.172s +51.972s
    └─systemd-user-sessions.service @23.975s +193ms
      └─network.target @23.931s
        └─NetworkManager.service @20.702s +3.228s
          └─dbus.service @20.699s
            └─basic.target @20.674s
              └─sockets.target @20.674s
                └─docker.socket @20.650s +22ms
                  └─sysinit.target @20.443s
                    └─systemd-timesyncd.service @20.342s +100ms
                      └─systemd-tmpfiles-setup.service @20.027s +269ms
                        └─systemd-journal-flush.service @2.898s +17.102s
                          └─systemd-journald.service @2.545s +335ms
                            └─systemd-journald.socket @2.474s
                              └─system.slice @2.436s
                                └─-.slice @2.436s

cat /var/log/boot.log

/dev/sda2: clean, 724644/2608144 files, 8371529/10424832 blocks
[  OK  ] Finished Tell Plymouth To Write Out Runtime Data.
         Mounting Arbitrary Executable File Formats File System...
[  OK  ] Finished Set console font and keymap.
[  OK  ] Mounted Arbitrary Executable File Formats File System.
[  OK  ] Finished Enable support for additional executable binary formats.
[  OK  ] Finished Load AppArmor profiles.
         Starting Raise network interfaces...
[  OK  ] Finished Raise network interfaces.
         Starting Load/Save RF Kill Switch Status...
[  OK  ] Started Load/Save RF Kill Switch Status.
[  OK  ] Finished Flush Journal to Persistent Storage.
         Starting Create Volatile Files and Directories...
[  OK  ] Finished Create Volatile Files and Directories.
         Starting Network Name Resolution...
         Starting Network Time Synchronization...
         Starting Record System Boot/Shutdown in UTMP...
[  OK  ] Finished Record System Boot/Shutdown in UTMP.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Initialization.
[  OK  ] Started CUPS Scheduler.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Path Units.
[  OK  ] Reached target System Time Set.
[  OK  ] Started Trigger anacron every hour.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Started Periodic ext4 Online Metadata Check for All Filesystems.
[  OK  ] Started Daily exim4-base housekeeping.
[  OK  ] Started Refresh fwupd metadata regularly.
[  OK  ] Started Daily rotation of log files.
[  OK  ] Started Daily man-db regeneration.
[  OK  ] Reached target Timer Units.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Listening on CUPS Scheduler.
[  OK  ] Listening on D-Bus System Message Bus Socket.
         Starting Docker Socket for the API...
[  OK  ] Listening on saned incoming socket.
[  OK  ] Listening on UUID daemon activation socket.
[  OK  ] Listening on Docker Socket for the API.
[  OK  ] Reached target Socket Units.
[  OK  ] Reached target Basic System.
         Starting Accounts Service...
         Starting Avahi mDNS/DNS-SD Stack...
         Starting Bluetooth service...
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Started D-Bus System Message Bus.
         Starting Network Manager...
         Starting Remove Stale Online ext4 Metadata Check Snapshots...
[  OK  ] Reached target Login Prompts.
         Starting Initialize hardware monitoring sensors...
         Starting LSB: Mono XSP4...
         Starting Authorization Manager...
         Starting System Logging Service...
         Starting Switcheroo Control Proxy service...
         Starting User Login Management...
         Starting Disk Manager...
         Starting VirtualBox Linux kernel module...
         Starting WPA supplicant...
[  OK  ] Finished Remove Stale Online ext4 Metadata Check Snapshots.
[  OK  ] Finished Initialize hardware monitoring sensors.
[  OK  ] Started System Logging Service.
[  OK  ] Started LSB: Mono XSP4.
[  OK  ] Started Network Name Resolution.
[  OK  ] Reached target Host and Network Name Lookups.
[  OK  ] Started User Login Management.
[  OK  ] Started Bluetooth service.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started WPA supplicant.
[  OK  ] Started Network Manager.
[  OK  ] Reached target Bluetooth Support.
[  OK  ] Reached target Network.
         Starting Network Manager Wait Online...
         Starting The Apache HTTP Server...
         Starting containerd container runtime...
         Starting CUPS Scheduler...
[  OK  ] Started Glances.
         Starting OpenBSD Secure Shell server...
         Starting Permit User Sessions...
[  OK  ] Started Unattended Upgrades Shutdown.
[  OK  ] Started Switcheroo Control Proxy service.
         Starting Save/Restore Sound Card State...
[  OK  ] Finished Save/Restore Sound Card State.
[  OK  ] Reached target Sound Card.
[  OK  ] Started Authorization Manager.
         Starting Modem Manager...
         Starting Hostname Service...
[  OK  ] Finished Permit User Sessions.
         Starting GNOME Display Manager...
         Starting Hold until boot process finishes up...
[  OK  ] Started Hostname Service.
[  OK  ] Started Accounts Service.
         Starting Network Manager Script Dispatcher Service...
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Started Network Manager Script Dispatcher Service.
[  OK  ] Started VirtualBox Linux kernel module.
         Starting vboxautostart-service.service...
         Starting vboxballoonctrl-service.service...
[  OK  ] Started vboxautostart-service.service.
[  OK  ] Started vboxballoonctrl-service.service.
[  OK  ] Started GNOME Display Manager.
         Starting DisplayLink Driver Service...

-- 
Marcelo


Reply to: