SSSD-KCM is a service tool for managing kerberos caches obtained from pam_sso but it can sometimes cause huge cpu-loads (90%+). I'm not sure on why exactly this happens but I think it has something to do with the secrets.ldb (/var/lib/sss/secrets/secrets.ldb) mismatching the current dyanmic-db or cache.
Anyway, the solution is fairly simple and takes less than a minute.
First, stop both sssd-services:
[root@server ~]# systemctl stop sssd.service sssd-kcm.socket
Now, make a backup of the secrets.ldb, you know just in case:
[root@server ~]# cp -r /var/lib/sss/secrets /var/lib/sss/secrets.bak
[root@server ~]# rm -rf /var/lib/sss/secrets
Start the sssd services again:
[root@server ~]# systemctl start sssd.service sssd-kcm.socket
The 'sssd_kcm' process should not be causing any huge cpu loads anymore.
Feel free to comment and / or suggest a topic.
Am I missing something here? You're just making a backup of the secrets file then restarting.
ReplyDeleteThe backup is there just in case anything goes wrong. It can be deleted after you're done.
DeleteBut how come that will reduce the CPU load ?
Delete