Slow system/su command on Devuan fixed!
For the hurried-up people:
I found the reason why my #Devuan server was slow in almost all regards. You may have to run $ sudo pam-auth-update
and then unselect the elogind Session Management
option.
Very simple fix. Now just restart your daemons or your server to have this change fully affecting your instance or whatever you run on it.
Longer log on how I slowly came to this point:
I found this out through executing $ sudo strace su - vuXXX
and then it was slow at a ppoll()
syscall which has a connect()
syscall before to the dbus
daemon. So I stopped it and it was fast. Sure this isn't the fix so I was eager to look further. I then checked again the strace
output and found some sendmsg()
invocation for authentication data which brought me closer to above fix. I then saw the /etc/pam.d/common-auth
file and checked it. I only found some usual and an optional line for pam_shield.so
. But that wasn't the culprit here. Then I also found elogind-user
and that was the right one. So I tried to find the command to deactivate the responsible PAM module and saw in the documentation to use pam-auth-update
.
And then I found the culprit elogind Session Management
and deactivated it. I hope this saves some time for you.
Theaitetos (Рцяэыоод) likes this.
Ji Fu
in reply to Roland Häder • • •Roland Häder doesn't like this.
Roland Häder
in reply to Ji Fu • •