On 28/10/2019 07.54, Per Jessen wrote:
Carlos E. R. wrote:
systemctl status post[tab][tab]
after a few seconds, it autocompletes to:
systemctl status postfix.service
Why not instantly? It is an SSD drive.
I doubt if it has anything to do with any disk drive. On 42.3 (xen guest with virtual drive on scsi raid), systemctl command line completion seems reasonably fast, less than 1 second certainly. On 15.1, 2-3-4 seconds. (root on nfs, otherwise iscsi). On 12.3, (root on nfs, otherwise iscsi) - very fast, instantaneous.
I agree it is very slow on 15.1. To investigate, you could try running an strace from another shell.
On that machine (Isengard) it was slow also on 15.0, but this machine (Telcontar) was "normal", I think. Now this machine is also slow, even slower. Sometime ago, I saw a flurry of syslog messages when I did the tab-tab thing. Apparently something was exploring the disk. strace on what process? Google "systemctl completion" autocompletes to "slow". There is a redhat bugzilla, another issue on github, another bug on launchpad... The redhat bugzilla was attempted to be closed several times for bureaucratic reasons (end of life), but after two years they got a possible patch, then another attempt to close the bug... Problem: bash completion of systemctl command is very slow or totally hanged up for minutes in case of a great number of systemd units (>250). Reason: Completion routines calls systemctl as times as many systemd units exist. Solution: Patch file I don't think I'm going to try trace, this is far above me this time. The problem is known worldwide. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)