When I boot my PC, the green progress bar takes an age to complete, and then i’m left staring at a black screen for 4-5 minutes before the splash appears, which takes a further 2-3 minutes to load my desktop. How do I go about finding out what is causing this painfully slow boot?
Why does avahi take so much time to load? I don’t use it so I don’t really know, but it’s on top of your list.
Also the firewall service shouldn’t take so much time, at least it does not on my system.
[QUOTE=finders;2505135]Why does avahi take so much time to load? I don’t use it so I don’t really know, but it’s on top of your list.
Also the firewall service shouldn’t take so much time, at least it does not on my system.
Can you tell me what avahi does and what I can do to disable it? As far as the firewall is concerned, I have a hardware firewall router so I probably don't need to use the suse firewall.
You can either uninstall it, delete it from /etc/init.d/ or disable it from yast. That’s how I would solve it.
But if you don’t know what it does or why it’s there, leaving it alone might be a good idea.
Maybe some of your programs depend on it, I can only guess because I don’t use it.
On 2012-11-20 10:36, finders wrote:
>
> chyrania;2504845 Wrote:
>>
>> colin@linux-rjqz:~> systemd-analyze blame
>> 33481ms avahi-daemon.service
>> 33359ms SuSEfirewall2_init.service
>> 24940ms remount-rootfs.service
>> 10233ms systemd-modules-load.service
>> 7864ms systemd-vconsole-setup.service
>> 7030ms network.service
>>
>
> Why does avahi take so much time to load? I don’t use it so I don’t
> really know, but it’s on top of your list.
Don’t be misled by analyze blame. That a service ends in thirty seconds
doesn’t mean that it is holding and delaying boot by thirty seconds.
Instead use the boot graph.
–
Cheers / Saludos,
Carlos E. R.
(from 11.4 x86_64 “Celadon” (Minas Tirith))
As far as my experience goes with these services, they all run in parallel by default, so if one of them stalls, others continue on top of it.
If however I use sysvinit-init and set RUN_PARALLEL=“no” then the system would run one at the time so if one of them stalls, others won’t start.
I may be wrong but that’s how it used to work before systemd. Anyway, it’s an interesting subject.
I’ve seen certain delays with sysvinit , but almost exclusively related to ifconfig, ntp and dns.
Never seen a firewall taking this long, something’s obviously wrong with it.
Wouldn’t that cause ntp.service to hang as well?
This reminds me of a time when I had to get rid of network manager.
Switched to static ifup and it’d cut boot time in half, no idea if that’s still the case with systemd.
> Wouldn’t that cause ntp.service to hang as well?
Yes.
> This reminds me of a time when I had to get rid of network manager.
> Switched to static ifup and it’d cut boot time in half, no idea if
> that’s still the case with systemd.
Could be.
–
Cheers / Saludos,
Carlos E. R.
(from 11.4 x86_64 “Celadon” (Minas Tirith))
Just run “systemd-analyze plot > /tmp/boot.svg” and open the file with firefox. There you should be able to identify the critical path that causes the delay.