Systemd It is the new daemon for the boot system that many distributions incorporate that have replaced the old one init.
Hated by many (including Linus Torvalds who with good reason sent one of his programmers to fly), adored by others, it is still true that regardless of the problems that Systemd may "philosophically" have, the distributions that have adopted it have shown a boot time much lower than the rest.
And that's exactly what this post is about, showing you a simple command that will show us the Kernel startup time and the workspace.
We open a terminal and put:
$ systemd-analyze
In my case, I have ArchLinux installed on a Caché SSD, with KDE 4.12.4, so I got the following result:
Startup finished in 5.355s (kernel) + 2.309s (userspace) = 7.664s
What do you think?
Systemd seems to me the best, I have not seen anything like it. Also the systemctl status gives a lot of info to help correct certain errors. Look at mine:
[maykel @ maykel-arch akonadi] $ systemd-analyze
Startup finished in 1.785s (kernel) + 1.511s (userspace) = 3.296s
I guess that if you say ssd cache, you use it only to load the OS boot and to cache the apps that you open to ssd cache. I have it all on the same 128 GB ssd.
Thanks for the info.
Cache SSDs are SSDs that some manufacturers include for Windows to use as Virtual Memory. I understand that they are cheaper and "bad" than normal SSDs. In the SSD Cache I have the System installed leaving my data for the mechanical disk 😀
From the beginning I said that SystemD is one of the good things for linux. From the beginning I said that Debian will adopt it and the reasons are more than obvious. Btrfs is also it and therefore my servers, laptop and pc's are already on it. And I admit that very, very well 😀
And aren't you delighted with the new functionality of Btrfs (the addition of extended attributes)?
It is true that there are not many (none, I would say) applications that use it, but the possibilities are endless.
it takes me a long time:
Startup finished in 2.961s (kernel) + 24.178s (userspace) = 27.140s
How do I make it start faster? Because I really do notice it
You would have to install an SSD. 🙁
Well then I'll stay better like this hahaha
systemd-analyze blame
It tells you the time for each service
My data:
Startup finished in 3.416s (kernel) + 15.543s (userspace) = 18.960s
My main drive is a SATA 2 7200RPM.
The truth is that SystemD is doing quite well, the change was noticeable. I've already spoken, I don't know where, about the differences, but since it's all technical things, I didn't understand anything
Startup finished in 3.605s (kernel) + 25.651s (userspace) = 29.257s
How can I improve the startup time of my machine: ((I have kernel 3.8 and cinnamon as desktop environment, I'm on archlinux)
Boot time will only improve using an SSD. Although at the Software level you can make some adjustments, an SSD is the solution.
KaOS startup time on a msata SSD:
Startup finished in 1.082s (kernel) + 1.343s (userspace) = 2.425s
A luxury!!
In addition to the total time, options can be added to show more information:
systemd-analyze blame sorts the time of all processes from highest to lowest
systemd-analyze critical-chain indicates possible bottlenecks in startup times.
A greeting.
Thanks for the information..
Startup finished in 2.089s (kernel) + 6.680s (userspace) = 8.770s
That gave me on KaOS with a mechanical disk, I think kaos is a cheaper fast boot solution than an ssd: p. Nor do I want to imagine when he started with one of those.
The truth is that the kernel takes a long time to start ... for what (theoretically) little it does. But hey, I think it's monolithic kernel stuff 😛
The userspace thing is impressive.
I have tried running the command but the answer it gives me is:
bash: systemd-analyze: command not found
I have Debian Wheezy installed.
Since the order is not found, do I have to install something beforehand?
Thanks for the attention.
As the article says, the command is for systems that use SystemD as init, in Debian Wheezy SysVinit is used so this command will not work for you, mate.
Thank you very much for the clarification Yukiteru. One more thing one learns in this fascinating world of GNU / Linux
7 seconds !!! tremendous. One question, did you do something special to install arch in this ssd cache?
Any advice on how to lower these times?
Startup finished in 1.371s (kernel) + 4.005s (initrd) + 56.367s (userspace) = 1min 1.744s
As always, around here, there are very good tips.
According to the command, this is what it throws at me:
Startup finished in 2.395s (kernel) + 26.193s (userspace) = 28.588s
And what the bottleneck does, is this:
graphical.target @ 26.193s
└─multi-user.target @ 26.193s
└─pdnsd.service @ 26.192s
└─network.target @ 26.192s
With a WD Blue 500GB
Startup finished in 4.051s (kernel) + 11.885s (userspace) = 15.936s
My bottleneck is 3
ntpd.service @ 11.487s + 397ms
NetworkManager.service @ 6.332s + 5.153s
dev-disk-by\x2duuid-357098a9\x2daf36\x2d456c\x2dabe4\x2d7576d1792dfa.swap @6.091s +205ms
The truth is that this worries me: S
NetworkManager.service @ 6.332s + 5.153s
Forgot to mention the distro. Manjaro with Gnome (community edition). And mechanical hard drive.
Startup finished in 3.266s (kernel) + 12.302s (userspace) = 15.568s
and I do have an SSD! Although / home is on a mechanical disk.
If you have it stored in a drawer I doubt that you will see any difference 😉
I say it because I do not see that it is very fast
And that, I have the mechanical disk and already with a couple of comfortable years of service. The disk in question is: Maxtor 6L250S0
On the one hand, when I got this disk and according to tune2fs:
Was created:
Filesystem created: Tue Oct 12 11:28:03 2010
And it has moved in all that time:
Lifetime writes: 1353 GB
Although, I know why the network-manager has that time, and the pdnsd depends on the latter to work.
Hello! I would like to know how to do this test in Mint ... Greetings!
not available in elementaryOS, what a shame, because we did a long time ago with some friends in fedora: '(
Startup finished in 2.111s (kernel) + 5.034s (userspace) = 7.145s
some way to improve the userspace (I have to delete files ?? XD)
0.75 Seconds !!! WUAO
Thanks for the contribution friend
In linux mint how would it be done?
Well I with an Intel E2140 CPU, 2GB of RAM, integrated GMA950 and two disks (SATA1 of 148GB where the system is, IDE of 40GB), I have this:
Startup finished in 2.794s (kernel) + 17.784s (userspace) = 20.578s
Nothing bad. By the way, Archlinux x86. My limitation is the disk.
$systemd-analyze
Startup finished in 1.731s (kernel) + 2.882s (initrd) + 4min 48.866s (userspace) = 4min 53.480s
$ systemd-analyze blame
4min 33.660s bumblebee-nvidia.service
23.110s rsyslog.service
:/
Hey how are you ... hey how I can reduce the userspace time, since it appears to me that they are 34.151s aaaww I already knew that it took a long time