Bug 89344 - Takes too long to initialize
Summary: Takes too long to initialize
Status: RESOLVED MOVED
Alias: None
Product: accountsservice
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Matthias Clasen
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-26 20:05 UTC by Paul Menzel
Modified: 2018-08-07 09:31 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Paul Menzel 2015-02-26 20:05:17 UTC
According to `systemd-analyze blame` [1] Accounts Service takes over half a second to initialize.

    $ systemd-analyze blame
               635ms NetworkManager.service
               527ms accounts-daemon.service
               344ms binfmt-support.service
    […]

This is pretty long compared to other processes, though the output only says how long the processes take to register themselves on the D-Bus(?) (or something like it).

Still it should not take that long to start and hopefully the code can be optimized.

Half a second does not sound much to some, but for a fast boot (less than three seconds) it is essential that each process takes as little time as possible.

[1] $ man systemd-analyze
[…]
       systemd-analyze blame prints a list of all running units, ordered by
       the time they took to initialize. This information may be used to
       optimize boot-up times. Note that the output might be misleading as
       the initialization of one service might be slow simply because it
       waits for the initialization of another service to complete.
[…]
Comment 1 Paul Menzel 2015-02-26 20:13:57 UTC
$ systemd-analyze critical-chain # with Network Manager disabled
graphical.target @1.503s
└─accounts-daemon.service @1.046s +456ms
  └─basic.target @1.045s
    └─paths.target @1.045s
      └─cups.path @1.045s
        └─sysinit.target @1.039s
          └─console-setup.service @1.036s +2ms
            └─kbd.service @701ms +334ms
              └─remote-fs.target @699ms
                └─local-fs.target @698ms
                  └─boot.mount @593ms +104ms
                    └─dev-disk-by\x2duuid-4377bc90\x2d8b09\x2d45b5\x2dad12\x2d21dff5b7292b.device @569ms
Comment 2 Matthias Clasen 2015-02-26 21:14:41 UTC
(In reply to Paul Menzel from comment #0)
 
> Still it should not take that long to start and hopefully the code can be
> optimized.

Patches welcome.
Comment 3 GitLab Migration User 2018-08-07 09:31:19 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/accountsservice/accountsservice/issues/21.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.