You are not logged in.
Pages: 1
I noticed that when in the chroot on the install iso running systemctl like
systemctl enable whateverruns instantly.
However, after logging into the new system, in a tty before installing anything graphical and after installing nvidia+xfce, when running the exact same command there is a noticeable delay. Both using sudo and as root.
is this normal?
I am using the July iso.
Offline
How long is "a noticeable delay" in seconds?
Is *only* that command affected? disabling services or non-ystemctl stuff "echo foo" return instantly?
Online
Maybe a quarter of a second?
It also does it with disabling with systemctl. other commands don't seem affected.
Offline
so you feel 0.25s as "noticeable long"? my personal reaction time is slower than this - I wouldn't even be able to tell a difference
Offline
A quarter second is pretty trivial. Enabling and disabling both trigger filesystem operations which would explain why it would be faster in the iso.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
The enable option just creates symlinks so do you see the same delay if you do that yourself?
For example, with nftables.service, instead of `systemctl enable` use
# ls -s /usr/lib/systemd/system/nftables.service /etc/systemd/system/multi-user.target.wantsIs that faster?
Disabling is just a matter of deleting the symlink, which should also be very quick.
Jin, Jîyan, Azadî
Offline
The enable option just creates symlinks
Are you sure that's all it does? It doesn't flush the write and / or confirm the link is properly in place?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Yes, journal operations are also part of systemctl. My suggestion is intended to test if the symlinks are the problem or systemctl itself.
Jin, Jîyan, Azadî
Offline
Next to FS operations it could also be noise on the system bus (the reason we cannot just throw strace at the situation and look why systemd is slow) but at 250ms we should maybe actually measure the delay
sudo -v
time sudo systemctl enable whateverand try that a couple of times to check whether it's consistent.
Speaking of: are subsequent (idempotent) calls slow as well?
Are --dry-run ones?
systemd takes a moment to enable a service here and my gut feeling is that the daemon reloads as consequence.
Online
Pages: 1