New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
systemctl list-unit-files takes more than a second #14730
Comments
See also efforts in #20328. |
We still can see this issue f.e. on all ubuntu 20.04 (systemd: 245.4-4ubuntu3.15 )machines. when going back on ubuntu 18.04 (systemd: 237-3ubuntu10.52) the issue is gone. The readlinkat() function is called sooo many times, that the called programm takes > double of the time |
On my system (arch, linux 6.1.9, systemd 252.5), |
@msp729 Thanks for sharing. However, note that stracing |
systemd version the issue has been seen with
v241,
but also reproducible with v244
Filed as downstream bug report https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=946961
Listing systemd units takes more than a second on a rather fast
system:
Adding a filter makes it run twice as long:
During this time, the PID 1 (systemd) makes an inordinate number
of file access system calls (counts, from the strace output):
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:
Looking at some versions in between (234, 237), the regression
seems to be cumulative, rather than something that happened in a
single commit.
For fun, I ran this also on a Rasperry Pi:
The text was updated successfully, but these errors were encountered: