You are not logged in.
Pages: 1
Hi:
I'm having problems with my booting time. It's very slow. There are some results of commands:
[root@WOT systemd]# systemd-analyze
Startup finished in 37.411s (kernel) + 14.801s (userspace) = 52.212s
[root@WOT ermanue]# systemd-analyze blame
7.055s systemd-journal-flush.service
6.729s dev-sda2.device
5.173s systemd-udev-trigger.service
3.801s wicd.service
3.015s net-auto-wireless.service
2.503s systemd-fsck@dev-disk-by\x2duuid-c7b73b67\x2d15aa\x2d472
2.104s mnt-Compartido.mount
2.061s systemd-journald.service
2.005s systemd-vconsole-setup.service
1.131s systemd-modules-load.service
1.080s polkit.service
930ms systemd-tmpfiles-setup-dev.service
812ms systemd-logind.service
806ms systemd-user-sessions.service
573ms home.mount
488ms systemd-sysctl.service
443ms upower.service
400ms rtkit-daemon.service
393ms udisks2.service
376ms systemd-binfmt.service
313ms sys-kernel-debug.mount
312ms dev-hugepages.mount
288ms fcron.service
278ms tmp.mount
277ms dev-mqueue.mount
276ms systemd-remount-fs.service
216ms sys-kernel-config.mount
204ms bluetooth.service
196ms systemd-rfkill@rfkill1.service
196ms systemd-rfkill@rfkill0.service
160ms systemd-tmpfiles-setup.service
144ms proc-sys-fs-binfmt_misc.mount
139ms user@1000.service
136ms systemd-tmpfiles-clean.service
107ms systemd-random-seed.service
82ms kmod-static-nodes.service
36ms systemd-update-utmp.service
20ms systemd-udevd.service
20ms verynice.service
14ms sys-fs-fuse-connections.mount
5ms alsa-restore.servicegraphical.target @14.801s
└─multi-user.target @14.801s
└─wicd.service @10.999s +3.801s
└─basic.target @10.977s
└─sockets.target @10.977s
└─dbus.socket @10.977s
└─sysinit.target @10.956s
└─systemd-update-utmp.service @10.919s +36ms
└─systemd-tmpfiles-setup.service @10.758s +160ms
└─local-fs.target @10.758s
└─home.mount @10.184s +573ms
└─systemd-fsck@dev-disk-by\x2duuid-c7b73b67\x2d15aa\x
└─dev-disk-by\x2duuid-c7b73b67\x2d15aa\x2d4721\x2dbCan anyone helps me? I have look for a lot and I can't find an answer
Thanks in advance. Kind regards:
Last edited by mgmartins (2015-07-01 21:21:57)
Spanish Arch Linux user since 2009
Offline
Hi:
I'm having problems with my booting time. It's very slow. There are some results of commands:
[root@WOT systemd]# systemd-analyze Startup finished in 37.411s (kernel) + 14.801s (userspace) = 52.212s[root@WOT ermanue]# systemd-analyze blame 7.055s systemd-journal-flush.service 6.729s dev-sda2.device 5.173s systemd-udev-trigger.service 3.801s wicd.service 3.015s net-auto-wireless.service 2.503s systemd-fsck@dev-disk-by\x2duuid-c7b73b67\x2d15aa\x2d472 2.104s mnt-Compartido.mount 2.061s systemd-journald.service 2.005s systemd-vconsole-setup.service 1.131s systemd-modules-load.service 1.080s polkit.service 930ms systemd-tmpfiles-setup-dev.service 812ms systemd-logind.service 806ms systemd-user-sessions.service 573ms home.mount 488ms systemd-sysctl.service 443ms upower.service 400ms rtkit-daemon.service 393ms udisks2.service 376ms systemd-binfmt.service 313ms sys-kernel-debug.mount 312ms dev-hugepages.mount 288ms fcron.service 278ms tmp.mount 277ms dev-mqueue.mount 276ms systemd-remount-fs.service 216ms sys-kernel-config.mount 204ms bluetooth.service 196ms systemd-rfkill@rfkill1.service 196ms systemd-rfkill@rfkill0.service 160ms systemd-tmpfiles-setup.service 144ms proc-sys-fs-binfmt_misc.mount 139ms user@1000.service 136ms systemd-tmpfiles-clean.service 107ms systemd-random-seed.service 82ms kmod-static-nodes.service 36ms systemd-update-utmp.service 20ms systemd-udevd.service 20ms verynice.service 14ms sys-fs-fuse-connections.mount 5ms alsa-restore.servicegraphical.target @14.801s └─multi-user.target @14.801s └─wicd.service @10.999s +3.801s └─basic.target @10.977s └─sockets.target @10.977s └─dbus.socket @10.977s └─sysinit.target @10.956s └─systemd-update-utmp.service @10.919s +36ms └─systemd-tmpfiles-setup.service @10.758s +160ms └─local-fs.target @10.758s └─home.mount @10.184s +573ms └─systemd-fsck@dev-disk-by\x2duuid-c7b73b67\x2d15aa\x └─dev-disk-by\x2duuid-c7b73b67\x2d15aa\x2d4721\x2dbCan anyone helps me? I have look for a lot and I can't find an answer
Thanks in advance. Kind regards:
First advice is to limit your journal size.
I possess a device, in my pocket, that is capable of accessing the entirety of information known to man.
I use it to look at funny pictures of cats and to argue with strangers.
Offline
Most of the time seems to be for your kernel -- which kernel version are you using?
Jin, Jîyan, Azadî
Offline
Hi, thanks for both of you:
My kernel version is
Linux WOT 4.0.6-1-ARCH #1 SMP PREEMPT Tue Jun 23 14:25:08 CEST 2015 x86_64 GNU/Linux
Journal size is default size. Here you've some commands outputs:
ermanue ~ $ grep -v "#" /etc/systemd/journald.conf
[Journal]ermanue ~ $ du -sh /var/log/journal
2,2G /var/log/journaljournalctl --disk-usage
Hint: You are currently not seeing messages from other users and the system.
Users in groups 'adm', 'systemd-journal', 'wheel' can see all messages.
Pass -q to turn off this notice.
Archived and active journals take up 205.2M on disk.Do you recommend me to set default size, by example, to 100MB?
Spanish Arch Linux user since 2009
Offline
Hi, thanks for both of you:
My kernel version is
Linux WOT 4.0.6-1-ARCH #1 SMP PREEMPT Tue Jun 23 14:25:08 CEST 2015 x86_64 GNU/Linux
Journal size is default size. Here you've some commands outputs:
ermanue ~ $ grep -v "#" /etc/systemd/journald.conf [Journal]ermanue ~ $ du -sh /var/log/journal 2,2G /var/log/journaljournalctl --disk-usage Hint: You are currently not seeing messages from other users and the system. Users in groups 'adm', 'systemd-journal', 'wheel' can see all messages. Pass -q to turn off this notice. Archived and active journals take up 205.2M on disk.Do you recommend me to set default size, by example, to 100MB?
I don't dare recommend anything, hence it's according to your own preferences, but I have my logfile size limit set to =50M
That's enough for me/my system.
I possess a device, in my pocket, that is capable of accessing the entirety of information known to man.
I use it to look at funny pictures of cats and to argue with strangers.
Offline
Any failed units?
systemctl --failedAny error messages during the booting process?
journalctl -bJin, Jîyan, Azadî
Offline
No failed units:
[root@WOT ermanue]# systemctl --failed
0 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.Some error messages during boot process, but they can be ignored:
[root@WOT ermanue]# journalctl -b -perr
-- Logs begin at vie 2013-01-04 21:02:05 CET, end at mar 2015-06-30 23:14:27 CEST. --
jul 01 00:56:17 WOT bluetoothd[534]: Failed to obtain handles for "Service Changed" characteristic
jul 01 00:56:17 WOT bluetoothd[534]: Not enough free handles to register service
jul 01 00:56:17 WOT bluetoothd[534]: Error adding Link Loss service
jul 01 00:56:17 WOT bluetoothd[534]: Not enough free handles to register service
jul 01 00:56:17 WOT bluetoothd[534]: Not enough free handles to register service
jul 01 00:56:17 WOT bluetoothd[534]: Not enough free handles to register service
jul 01 00:56:17 WOT bluetoothd[534]: Current Time Service could not be registered
jul 01 00:56:17 WOT bluetoothd[534]: gatt-time-server: Input/output error (5)
jul 01 00:56:17 WOT bluetoothd[534]: Not enough free handles to register service
jul 01 00:56:17 WOT bluetoothd[534]: Not enough free handles to register service
jul 01 00:56:17 WOT bluetoothd[534]: Sap driver initialization failed.
jul 01 00:56:17 WOT bluetoothd[534]: sap-server: Operation not permitted (1)I will try reducing journal size. I'll tell you.
Spanish Arch Linux user since 2009
Offline
Does your system boot any faster with the LTS kernel?
Jin, Jîyan, Azadî
Offline
A bit better reducing journal size to 50M
[root@WOT ermanue]# systemd-analyze
Startup finished in 17.689s (kernel) + 18.439s (userspace) = 36.129s
[root@WOT ermanue]# systemd-analyze blame
12.105s dev-sda2.device
10.313s systemd-udev-trigger.service
4.156s wicd.service
3.646s net-auto-wireless.service
2.283s systemd-journald.service
2.116s systemd-vconsole-setup.service
1.729s systemd-udevd.service
1.536s polkit.service
1.265s upower.service
1.239s systemd-tmpfiles-setup-dev.service
1.001s systemd-modules-load.service
848ms bluetooth.service
800ms systemd-journal-flush.service
510ms systemd-hostnamed.service
457ms mnt-Compartido.mount
339ms udisks2.service
253ms systemd-fsck@dev-disk-by\x2duuid-c7b73b67\x2d15aa\x2d4721\x2db15f\x2dade43e32b4a0.service
249ms fcron.service
208ms rtkit-daemon.service
194ms verynice.service
149ms systemd-tmpfiles-setup.service
148ms systemd-remount-fs.service
146ms systemd-user-sessions.service
135ms systemd-binfmt.service
133ms kmod-static-nodes.service
118ms user@1000.service
115ms systemd-random-seed.service
109ms systemd-logind.service
95ms systemd-sysctl.service
80ms dev-mqueue.mount
64ms systemd-rfkill@rfkill0.service
57ms tmp.mount
51ms systemd-update-utmp.service
46ms sys-kernel-debug.mount
46ms home.mount
44ms dev-hugepages.mount
15ms sys-kernel-config.mount
10ms sys-fs-fuse-connections.mount
10ms systemd-rfkill@rfkill1.service
5ms alsa-restore.service
1ms proc-sys-fs-binfmt_misc.mount
[root@WOT ermanue]# 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 @18.439s
└─multi-user.target @18.439s
└─wicd.service @14.282s +4.156s
└─basic.target @13.832s
└─sockets.target @13.832s
└─dbus.socket @13.832s
└─sysinit.target @13.809s
└─systemd-update-utmp.service @13.758s +51ms
└─systemd-tmpfiles-setup.service @13.607s +149ms
└─local-fs.target @13.607s
└─mnt-Compartido.mount @13.149s +457ms
└─dev-sda1.device @13.138sI have not try LTS kernel. Do you think it could be better?
One thing I have forgotten to say: my computer has got 16MB of RAM memory and an Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
Last edited by mgmartins (2015-06-30 21:33:18)
Spanish Arch Linux user since 2009
Offline
Why do you have wicd and net-auto-wireless running? Each one of them is slow - the two together are really slow, and redundant.
Also if you put the systemd hook in your mkinitcpio.conf (and rebuild the initramfs) you be able to see what is actually kernel time and what is initramfs time - as is they are pooled together. I suspect the delay is in the initramfs not the kernel.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
This is my mkinitcpio.conf
MODULES="atkbd"
BINARIES=""
FILES=""
HOOKS="base udev autodetect modconf block filesystems keyboard fsck"I will give a try to put systemd in mkinitcpio.conf
Spanish Arch Linux user since 2009
Offline
After adding systemd to mkinitcpio.conf
[root@WOT ermanue]# systemctl --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● net-auto-wireless.service loaded failed failed Automatic wireless network connection via netcfg
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
1 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
[root@WOT ermanue]# systemd-analyze
Startup finished in 410ms (kernel) + 6.941s (initrd) + 19.076s (userspace) = 26.428s
[root@WOT ermanue]# systemd-analyze blame
11.384s dev-sda2.device
10.243s systemd-udev-trigger.service
4.396s net-auto-wireless.service
3.646s wicd.service
2.153s systemd-vconsole-setup.service
2.032s systemd-journald.service
1.400s systemd-udevd.service
1.281s systemd-modules-load.service
1.084s systemd-tmpfiles-setup-dev.service
998ms systemd-journal-flush.service
911ms polkit.service
885ms systemd-hostnamed.service
724ms udisks2.service
432ms bluetooth.service
399ms mnt-Compartido.mount
322ms systemd-binfmt.service
298ms systemd-logind.service
278ms systemd-sysctl.service
269ms systemd-random-seed.service
259ms systemd-fsck@dev-disk-by\x2duuid-c7b73b67\x2d15aa\x2d4721\x2db15f\x2dade43e32b4a0.service
212ms systemd-user-sessions.service
211ms fcron.service
211ms verynice.service
198ms dev-hugepages.mount
196ms systemd-remount-fs.service
194ms sys-kernel-debug.mount
181ms dev-mqueue.mount
173ms tmp.mount
157ms kmod-static-nodes.service
151ms user@1000.service
139ms systemd-tmpfiles-setup.service
136ms systemd-fsck-root.service
90ms sys-kernel-config.mount
62ms upower.service
51ms home.mount
50ms systemd-rfkill@rfkill0.service
39ms proc-sys-fs-binfmt_misc.mount
33ms rtkit-daemon.service
28ms systemd-update-utmp.service
14ms systemd-rfkill@rfkill1.service
4ms alsa-restore.service
2ms sys-fs-fuse-connections.mount
[root@WOT ermanue]# 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 @19.076s
└─multi-user.target @19.076s
└─wicd.service @14.467s +3.646s
└─basic.target @13.483s
└─sockets.target @13.482s
└─dbus.socket @13.482s
└─sysinit.target @13.459s
└─systemd-update-utmp.service @13.430s +28ms
└─systemd-tmpfiles-setup.service @13.291s +139ms
└─local-fs.target @13.290s
└─mnt-Compartido.mount @12.891s +399ms
└─dev-sda1.device @12.879sI'm going to disable net-auto-wireless.service
Last edited by mgmartins (2015-06-30 21:51:34)
Spanish Arch Linux user since 2009
Offline
It does indeed look like most of the time is in the initramfs. Your initramfs looks pretty close to the default, so this shouldn't be a problem, however there are still a lot of moving parts. You could trim down your initramfs to narrow down the suspects. Falconindy has a blog post out there somewhere that goes over what you can do. My mkinitcpio.conf (for example only don't use this one, it is tailored for my hardware):
MODULES="ahci sd_mod ext4"
BINARIES="fsck fsck.ext4"
FILES=""
HOOKS="systemd"
COMPRESSION=catDepending on your set up, all you may really need is the block device drivers, the filesystem driver(s), the appropriate fsck binaries, and systemd. If you have a RAID setup or LVM, or LUKS, or any of that other fancy stuff you might need a good bit more.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Falconindy has a blog post out there somewhere that goes over what you can do.
Jin, Jîyan, Azadî
Offline
Ok, thanks a lot. I'll give it a look and I'll tell you
Spanish Arch Linux user since 2009
Offline
After playing with mkinitcpio.conf, these are my new values:
[root@WOT ermanue]# systemd-analyze
Startup finished in 3.050s (kernel) + 10.714s (userspace) = 13.765s
[root@WOT ermanue]# systemd-analyze blame
4.347s wicd.service
3.415s dev-sda2.device
2.693s systemd-journald.service
2.519s systemd-vconsole-setup.service
1.420s systemd-logind.service
1.400s systemd-user-sessions.service
1.400s fcron.service
1.400s verynice.service
1.131s systemd-udevd.service
760ms systemd-binfmt.service
745ms polkit.service
737ms systemd-remount-fs.service
724ms rtkit-daemon.service
720ms tmp.mount
710ms sys-kernel-debug.mount
710ms dev-hugepages.mount
701ms upower.service
693ms dev-mqueue.mount
663ms udisks2.service
646ms systemd-tmpfiles-setup-dev.service
604ms systemd-journal-flush.service
596ms proc-sys-fs-binfmt_misc.mount
516ms systemd-modules-load.service
363ms mnt-Compartido.mount
264ms systemd-tmpfiles-setup.service
258ms systemd-fsck@dev-disk-by\x2duuid-c7b73b67\x2d15aa\x2d4721\x2db15f\x2dade43e32b4a0.service
220ms sys-kernel-config.mount
154ms systemd-udev-trigger.service
153ms kmod-static-nodes.service
139ms systemd-update-utmp.service
138ms systemd-rfkill@rfkill0.service
113ms systemd-sysctl.service
109ms user@1000.service
108ms systemd-random-seed.service
47ms home.mount
16ms sys-fs-fuse-connections.mount
13ms alsa-restore.service
[root@WOT ermanue]# 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 @10.714s
└─multi-user.target @10.714s
└─wicd.service @6.366s +4.347s
└─basic.target @6.365s
└─sockets.target @6.365s
└─dbus.socket @6.365s
└─sysinit.target @6.329s
└─systemd-rfkill@rfkill0.service @7.786s +138ms
└─system-systemd\x2drfkill.slice @7.785s
└─system.slice @1.241s
└─-.slice @1.210sThat's to say: when I started this post, my booting time was 52.212s. Now it is 13.765s
This is my new mkinitcpio.conf, that I haven't finished yet:
MODULES="ata_generic ata_piix ahci atkbd ath9k_htc btusb coretemp ehci_pci evdev ext4 fan joydev mceusb mei_me mousedev nvidia pata_acpi pcc_cpufreq pcspkr sd_mod snd_hda_intel snd_usb_audio usbcore usbhid usb_storage"
BINARIES="fsck fsck.ext4"
FILES=""
HOOKS="base"Thanks all for your incredible help.
Spanish Arch Linux user since 2009
Offline
That's a pretty good time for a HDD. There are definitely some more modules you could trim, but the savings might be trivial. Wicd remains the weakest link - you could try alternatives. I've also never seen any value in the vconsole setup stuff. If you want a specific tty font you can always set that in your shellrc file (in a conditional block).
Edit: from the critical chain output, however, it seems vconsole is not holding you up, so that can stick around.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Pages: 1