fata
October 6, 2021, 8:02pm
1
Hi, I installed manjaro gnome a couple of weeks ago on my acer laptop and the system takes a long time to start.
Is it possible to disable plymouth-quit-wait.service , systemd-journal-flush.service , if possible, how. Look at other processes to see if there is something not needed there.
Kernel 5.13
CPU: Intel i5-7300HQ (4) @ 3.500GHz
GPU: NVIDIA GeForce GTX 1050 Ti Mobile
GPU: Intel HD Graphics 630
systemd-analyze
Startup finished in 3.044s (firmware) + 6.591s (loader) + 5.603s (kernel) + 1min 18.419s (userspace) = 1min 33.659s
graphical.target reached after 1min 17.375s in userspace
systemd-analyze critical-chain
graphical.target @1min 17.375s
└─multi-user.target @1min 17.375s
└─plymouth-quit-wait.service @43.971s +33.403s
└─systemd-user-sessions.service @43.780s +189ms
└─nss-user-lookup.target @45.247s
systemd-analyze blame
33.403s plymouth-quit-wait.service
12.366s systemd-journal-flush.service
11.300s ldconfig.service
10.054s polkit.service
7.550s NetworkManager.service
7.092s dev-sda3.device
6.525s systemd-fsck@dev-disk-by\x2duuid-87D9\x2d39B1.service
6.226s systemd-modules-load.service
5.649s bluetooth.service
5.641s systemd-logind.service
5.260s systemd-fsck@dev-disk-by\x2duuid-0c83fba9\x2d9bb0\x2d40b7\x2d8f24\x2d56>
2.958s cups.service
2.543s apparmor.service
2.016s udisks2.service
1.890s systemd-tmpfiles-setup.service
1.739s systemd-udevd.service
1.407s ModemManager.service
1.357s systemd-vconsole-setup.service
1.353s systemd-journal-catalog-update.service
1.217s systemd-backlight@backlight:intel_backlight.service
1.171s ufw.service
1.167s gdm.service
1.080s systemd-sysusers.service
1.042s tlp.service
1.034s accounts-daemon.service
1.004s mnt.mount
829ms user@1000.service
776ms home.mount
751ms dev-disk-by\x2duuid-42a58bc1\x2d106b\x2d42af\x2d831d\x2ddd412b125757.sw>
748ms systemd-update-utmp.service
742ms plymouth-start.service
730ms colord.service
651ms snapd.apparmor.service
630ms systemd-update-done.service
613ms modprobe@fuse.service
583ms systemd-rfkill.service
557ms systemd-udev-trigger.service
551ms systemd-sysctl.service
529ms upower.service
510ms systemd-tmpfiles-setup-dev.service
505ms systemd-random-seed.service
418ms boot-efi.mount
369ms linux-module-cleanup.service
368ms modprobe@drm.service
346ms wpa_supplicant.service
309ms systemd-remount-fs.service
210ms alsa-restore.service
1 Like
Hanzel
October 6, 2021, 8:20pm
2
Welcome to the forum
The plymouth-quit-wait.service
is waiting for something, it is not preventing anything iirc. Flushing your logs seems like a sane thing to do, if the log gets to large limit it to something you deem sensible?
If you could add info about the hardware you have other users might have an idea where to start looking to improve your boot times. Please provide the output of:
inxi --admin --verbosity=7 --filter --no-host --width
This thread lists some options to boot faster in gnome and seems relevant to your situation
fata
October 7, 2021, 6:40am
4
I am limited journal to max size 50M
inxi --admin --verbosity=7 --filter --no-host --width
System:
Kernel: 5.13.19-2-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.13-x86_64
root=UUID=97c4d7c6-9be1-410c-aa5c-7ccff446a03d rw quiet splash apparmor=1
security=apparmor resume=UUID=42a58bc1-106b-42af-831d-dd412b125757
udev.log_priority=3
Desktop: GNOME 40.4 tk: GTK 3.24.30 wm: gnome-shell dm: GDM 40.1
Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Laptop System: Acer product: Predator G3-572 v: V1.10 serial: <filter>
Mobo: KBL model: Sienta_KLS v: V1.10 serial: <filter> UEFI: Insyde v: 1.10
date: 08/22/2017
Battery:
ID-1: BAT1 charge: 37.3 Wh (100.0%) condition: 37.3/48.9 Wh (76.3%)
volts: 16.4 min: 15.2 model: COMPAL PABAS0241231 type: Li-ion
serial: <filter> status: Full
Memory:
RAM: total: 7.65 GiB used: 2.38 GiB (31.1%)
RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
Info: Quad Core model: Intel Core i5-7300HQ bits: 64 type: MCP
arch: Kaby Lake family: 6 model-id: 9E (158) stepping: 9 microcode: EA
cache: L2: 6 MiB bogomips: 20004
Speed: 900 MHz min/max: 800/2500 MHz Core speeds (MHz): 1: 900 2: 900 3: 900
4: 900
Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon art
avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc cpuid
cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est
f16c flexpriority flush_l1d fma fpu fsgsbase fxsr ht hwp hwp_act_window
hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid invpcid_single lahf_lm lm
mca mce md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc nopl nx pae pat
pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts
rdrand rdseed rdtscp rep_good sdbg sep smap smep ss ssbd sse sse2 sse4_1
sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust
tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt
xsaves xtopology xtpr
Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf
mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled
Type: mds mitigation: Clear CPU buffers; SMT disabled
Type: meltdown mitigation: PTI
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional,
IBRS_FW, STIBP: disabled, RSB filling
Type: srbds mitigation: Microcode
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel HD Graphics 630 vendor: Acer Incorporated ALI driver: i915
v: kernel bus-ID: 00:02.0 chip-ID: 8086:591b class-ID: 0300
Device-2: NVIDIA GP107M [GeForce GTX 1050 Ti Mobile]
vendor: Acer Incorporated ALI driver: nvidia v: 470.63.01
alternate: nouveau,nvidia_drm bus-ID: 01:00.0 chip-ID: 10de:1c8c
class-ID: 0300
Device-3: Chicony HD WebCam type: USB driver: uvcvideo bus-ID: 1-9:4
chip-ID: 04f2:b5f7 class-ID: 0e02
Display: x11 server: X.org 1.20.13 compositor: gnome-shell driver:
loaded: modesetting,nvidia alternate: fbdev,nouveau,nv,vesa
resolution: <missing: xdpyinfo>
OpenGL: renderer: Mesa Intel HD Graphics 630 (KBL GT2) v: 4.6 Mesa 21.2.2
direct render: Yes
Audio:
Device-1: Intel CM238 HD Audio vendor: Acer Incorporated ALI
driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a171
class-ID: 0403
Device-2: NVIDIA GP107GL High Definition Audio driver: snd_hda_intel
v: kernel bus-ID: 01:00.1 chip-ID: 10de:0fb9 class-ID: 0403
Sound Server-1: ALSA v: k5.13.19-2-MANJARO running: yes
Sound Server-2: JACK v: 1.9.19 running: no
Sound Server-3: PulseAudio v: 15.0 running: yes
Sound Server-4: PipeWire v: 0.3.37 running: yes
Network:
Device-1: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter
vendor: Lite-On driver: ath10k_pci v: kernel port: 4000 bus-ID: 02:00.0
chip-ID: 168c:003e class-ID: 0280
IF: wlp2s0 state: up mac: <filter>
IP v4: <filter> type: dynamic noprefixroute scope: global
broadcast: <filter>
IP v6: <filter> type: noprefixroute scope: link
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Acer Incorporated ALI driver: r8169 v: kernel port: 3000
bus-ID: 03:00.1 chip-ID: 10ec:8168 class-ID: 0200
IF: enp3s0f1 state: down mac: <filter>
WAN IP: <filter>
Bluetooth:
Device-1: Lite-On type: USB driver: btusb v: 0.8 bus-ID: 1-7:3
chip-ID: 04ca:3016 class-ID: e001
Report: rfkill ID: hci0 rfk-id: 3 state: up address: see --recommends
Logical:
Message: No logical block device data found.
RAID:
Message: No RAID data found.
Drives:
Local Storage: total: 931.51 GiB used: 375.05 GiB (40.3%)
SMART Message: Required tool smartctl not installed. Check --recommends
ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital model: WD10SPZX-21Z10T0
size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
type: HDD rpm: 5400 serial: <filter> rev: 1A02 scheme: GPT
Message: No optical or floppy data found.
Partition:
ID-1: / raw-size: 89.26 GiB size: 87.3 GiB (97.81%) used: 18.39 GiB (21.1%)
fs: ext4 dev: /dev/sda3 maj-min: 8:3 label: N/A
uuid: 97c4d7c6-9be1-410c-aa5c-7ccff446a03d
ID-2: /boot/efi raw-size: 502 MiB size: 501 MiB (99.80%)
used: 288 KiB (0.1%) fs: vfat dev: /dev/sda2 maj-min: 8:2 label: NO_LABEL
uuid: 87D9-39B1
ID-3: /home raw-size: 76.11 GiB size: 74.36 GiB (97.71%)
used: 45.53 GiB (61.2%) fs: ext4 dev: /dev/sda4 maj-min: 8:4 label: N/A
uuid: 0c83fba9-9bb0-40b7-8f24-5683f50bba82
ID-4: /mnt raw-size: 757.68 GiB size: 744.79 GiB (98.30%)
used: 311.13 GiB (41.8%) fs: ext4 dev: /dev/sda1 maj-min: 8:1 label: N/A
uuid: 8dff03bb-a725-493d-babc-3c9e2d680649
Swap:
Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 7.97 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/sda5 maj-min: 8:5 label: N/A
uuid: 42a58bc1-106b-42af-831d-dd412b125757
Unmounted:
Message: No unmounted partitions found.
USB:
Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 16 rev: 2.0
speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
Device-1: 1-6:2 info: Kingston HyperX Pulsefire FPS Gaming Mouse
type: Mouse,HID driver: hid-generic,usbhid interfaces: 2 rev: 1.1
speed: 12 Mb/s power: 100mA chip-ID: 0951:16bc class-ID: 0300
Device-2: 1-7:3 info: Lite-On type: Bluetooth driver: btusb interfaces: 2
rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 04ca:3016 class-ID: e001
Device-3: 1-9:4 info: Chicony HD WebCam type: Video driver: uvcvideo
interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 04f2:b5f7
class-ID: 0e02
Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 8 rev: 3.0 speed: 5 Gb/s
chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
System Temperatures: cpu: 42.5 C mobo: 29.8 C
Fan Speeds (RPM): N/A
Info:
Processes: 225 Uptime: 4m wakeups: 1 Init: systemd v: 249 tool: systemctl
Compilers: gcc: 11.1.0 Packages: pacman: 1344 lib: 322 flatpak: 0 Shell: Zsh
v: 5.8 running-in: gnome-terminal inxi: 3.3.06
fata
October 7, 2021, 6:58am
5
I found one way here, will there be problems after disabling plymouth-quit-wait.service?
Hanzel
October 7, 2021, 4:02pm
6
fata:
Graphics:
Device-1: Intel HD Graphics 630 vendor: Acer Incorporated ALI driver: i915
v: kernel bus-ID: 00:02.0 chip-ID: 8086:591b class-ID: 0300
Device-2: NVIDIA GP107M [GeForce GTX 1050 Ti Mobile]
vendor: Acer Incorporated ALI driver: nvidia v: 470.63.01
alternate: nouveau,nvidia_drm bus-ID: 01:00.0 chip-ID: 10de:1c8c
class-ID: 0300
Device-3: Chicony HD WebCam type: USB driver: uvcvideo bus-ID: 1-9:4
chip-ID: 04f2:b5f7 class-ID: 0e02
Display: x11 server: X.org 1.20.13 compositor: gnome-shell driver:
loaded: modesetting,nvidia alternate: fbdev,nouveau,nv,vesa
resolution: <missing: xdpyinfo>
OpenGL: renderer: Mesa Intel HD Graphics 630 (KBL GT2) v: 4.6 Mesa 21.2.2
direct render: Yes
I’m not familiar with dual graphics setups (I avoid them as the plague)
The long wait might have something to with it, errors from your journal log and/or xorg.log might give other users an idea where to start.
Drive is not the fastest, I would not be surprised if this is one of your bottlenecks.
Fabby
October 7, 2021, 10:50pm
7
That’s why it’s taking a lot of time to flush everything at boot every boot just clean it manually every now and then.
I use this once in a while to clean up everything:
#!/bin/bash
#Remove orphans
pamac remove --orphans
#clean cache
pamac clean --keep 2
pamac clean --build-files
# Clean kioexec cache (KDE only)
# rm --recursive ~/.cache/kioexec/krun/*
# Delete cache not modified for 20 days
find ~/.cache -depth -type f -mtime +20 -delete
#clean Journals
sudo journalctl --vacuum-time=20d
That’s just showing the splash screen: it’s the systemd-journal-flush.service
that takes a lot of time, so no issue with plymouth-quit-wait
.
Kernel 5.13 is EOL so please install both 5.4 and 5.10 LTS (Long Term Support) and see which one of the two troubles you least.
You might benefit from the Hybrid proprietary drivers
fata:
HDD rpm: 5400
Slow hard drive, default swappiness parameters.
Create the following file: /etc/sysctl.d/30-swap_usage.conf
with these contents:
# Fabby: 2014-03-02: change "swappiness" from default 60 to 10:
# Theoretically, only swap when RAM usage reaches around 80 or 90 percent
# Fabby: 2014-03-29: lower to 5 as swapping is still occurring with low mem usage
# Fabby: 2014-11-21: Bring back up to 10 as vm.vfs_cache_pressure was introduced
vm.swappiness = 10
# Fabby: 2014-11-29: Lower vm.vfs_cache_pressure to 75%
# (once cached, probably not immediately needed any more)
#
#
# This value used to be a percentage value that controls the tendency of
# the kernel to reclaim the memory which is used for caching of directory and
# inode objects.
#
# At the default value of vfs_cache_pressure=100 the kernel will attempt to
# reclaim dentries and inodes at a "fair" rate with respect to pagecache and
# swapcache reclaim. Decreasing vfs_cache_pressure causes the kernel to prefer
# to retain dentry and inode caches.
# Edit 2020: Nowadays the value can be >100!
vm.vfs_cache_pressure = 75
1 Like
fata
October 12, 2021, 11:40am
8
thanks, i changed the kernel to 5.10 and created the config 30-swap_usage.conf, and now the system boots in 38 seconds
~ ➤ systemd-analyze
Startup finished in 3.012s (firmware) + 7.524s (loader) + 4.453s (kernel) + 23.320s (userspace) = 38.310s
graphical.target reached after 20.412s in userspace
~ ➤ systemd-analyze blame
6.567s dev-sda3.device
5.987s systemd-modules-load.service
3.356s tlp.service
2.864s ldconfig.service
2.734s accounts-daemon.service
2.512s cups.service
2.305s apparmor.service
2.126s systemd-udevd.service
2.005s udisks2.service
1.893s polkit.service
1.584s systemd-journal-flush.service
1.510s systemd-vconsole-setup.service
1.508s systemd-sysctl.service
1.451s systemd-fsck@dev-disk-by\x2duuid-0c83fba9\x2d9bb0\x2d40b7\x2d8f24\x2d568>
1.417s systemd-journal-catalog-update.service
1.381s systemd-sysusers.service
1.325s bluetooth.service
1.319s NetworkManager.service
1.153s systemd-logind.service
1 Like
system
Closed
October 15, 2021, 1:40am
9
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.