Bug#946961: systemd: systemctl list-unit-files takes more than a second

Luca Boccassi bluca at debian.org
Mon May 27 17:56:40 BST 2024


Control: close -1

On Fri, 20 Dec 2019 11:25:03 +0100 Michael Biebl <biebl at debian.org>
wrote:
> Control: severity -1 minor
> 
> Am 18.12.19 um 15:28 schrieb Dejan Muhamedagic:
> > Package: systemd
> > Version: 241-7~deb10u2
> > Severity: important
> > 
> > Dear Maintainer,
> > 
> > Listing systemd units takes more than a second on a rather fast
> > system:
> > 
> > # time systemctl list-unit-files | wc
> > 351     703   19219
> > 
> > real        0m1.107s
> > user        0m0.000s
> > sys 0m0.013s
> > 
> > Adding a filter makes it run twice as long:
> > 
> > # time systemctl --state=enabled list-unit-files | wc
> >      63     127    2890
> > 
> > real        0m2.153s
> > user        0m0.010s
> > sys 0m0.002s
> > 
> > During this time, the PID 1 (systemd) makes an inordinate number
> > of file access system calls (counts, from the strace output):
> > 
> >       1 accept4
> >       1 getsockname
> >       1 sendmsg
> >       2 setsockopt
> >       3 epoll_ctl
> >       3 recvmsg
> >       4 clock_gettime
> >       4 epoll_wait
> >       7 getsockopt
> >     496 read
> >   30535 fstat
> >   33505 close
> >   39334 getdents64
> >   40030 fcntl
> >   45839 openat
> >   98565 readlinkat
> > 
> > This is a serious usability problem because of the perceived
> > delay during interactive work.
> 
> > This behaviour is observed on several installations of the
> > up-to-date Debian Buster. This seems to be a regression compared
> > to the Stretch version:
> > 
> > # systemctl --version 
> > systemd 232
> > +PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP
> > +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID
> > +ELFUTILS +KMOD +IDN

This is tracked upstream, there are no patches nor configuration
downstream, closing.

-- 
Kind regards,
Luca Boccassi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20240527/9bde56d4/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list