Skip to content

Improve systemd-timesyncd start-up time #5024

@paulmenzel

Description

@paulmenzel

Submission type

  • Bug report
  • Request for enhancement (RFE)

NOTE: Do not submit anything other than bug reports or RFEs via the issue tracker!

systemd version the issue has been seen with

systemd 232

NOTE: Do not submit bug reports about anything but the two most recently released systemd versions upstream!

Used distribution

Debian Sid/unstable

With 132 ms systemd-timesyncd takes up most of the time to the network.target.

$ systemd --version
systemd 232
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN
$ 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 @576ms
└─multi-user.target @576ms
  └─libvirt-guests.service @568ms +7ms
    └─libvirtd.service @448ms +119ms
      └─network.target @445ms
        └─NetworkManager.service @379ms +65ms
          └─dbus.service @343ms
            └─basic.target @324ms
              └─sockets.target @324ms
                └─virtlogd.socket @324ms
                  └─sysinit.target @323ms
                    └─systemd-timesyncd.service @190ms +132ms
                      └─systemd-tmpfiles-setup.service @179ms +9ms
                        └─systemd-journal-flush.service @170ms +7ms
                          └─systemd-journald.service @105ms +64ms
                            └─syslog.socket @104ms
                              └─-.mount @90ms
                                └─system.slice @101ms
                                  └─-.slice @90ms
$ journalctl -b -u systemd-timesyncd -o short-precise -b
-- Logs begin at Wed 2017-01-04 16:26:23 CET, end at Thu 2017-01-05 11:52:56 CET. --
Jan 05 11:50:54.658300 xps13 systemd[1]: Starting Network Time Synchronization...
Jan 05 11:50:54.747972 xps13 systemd[1]: Started Network Time Synchronization.
Jan 05 11:51:25.216545 xps13 systemd-timesyncd[278]: Synchronized to time server 193.99.165.217:123 (2.debian.pool.ntp.org).

It’d be great, if the time could be reduced to around 50 ms, if it’s possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions