Comment # 52 on bug 1165351 from
In reply to Luis Chamberlain from comment #48)
> Note: I have a work around for now thanks to Anthony Iliopoulos, his
> suggestion was to disable systemd from pam:
> 
> --- /etc/pam.d/common-session-pc.old	2020-03-25 13:42:38.404526416 +0100
> +++ /etc/pam.d/common-session-pc	2020-03-25 13:42:47.308353223 +0100
> @@ -28,7 +28,7 @@
>  # at the start and end of sessions of *any* kind (both interactive and
>  # non-interactive
>  #
> -session	optional	pam_systemd.so  debug
> +#session	optional	pam_systemd.so  debug
>  session	required	pam_limits.so	
>  session	required	pam_unix.so	try_first_pass 
>  session	optional	pam_umask.so
> 
> I'll also note that this issue is *still* present if you don't do the above,
> but just disable NIS. I disabled NIS by commenting out /etc/yp.conf and
> stopping ypserv.service and then disabling it. The only effective way to
> work around this is disabling pam_Systemd.so from pam from commom-session-pc
> as noted above.
> 
> But without a system to reproduce, we have no way of debugging it further. 
> 
> Thomas, I'll leave chivo with the pam_systemd.so enabled, but I'll disable
> it on tuctuc. I'll keep using tuctuc for development, feel free to use chivo
> for any further testing / debugging.

Thanks Luis, actually Franck found a workaround and I've just verified it on
chivo.
Starting nscd suppresses the oom at test user login:

-->
chivo:~/:[0]# systemctl start nscd
chivo:~/:[0]# systemctl status nscd
��� nscd.service - Name Service Cache Daemon
     Loaded: loaded (/usr/lib/systemd/system/nscd.service; disabled; vendor
preset: enabled)
     Active: active (running) since Wed 2020-03-25 14:56:52 CET; 3min 38s ago
[...]
chivo:~/:[130]# systemd-cgls 
Control group /:
-.slice
������user.slice 
��� ������user-1001.slice 
��� ��� ������session-18.scope 
��� ��� ��� ������24546 sshd: test [priv]
��� ��� ��� ������24567 sshd: test@pts/1
��� ��� ��� ������24570 -bash
��� ��� ������user@1001.service ���
��� ���   ������init.scope 
��� ���     ������24557 /usr/lib/systemd/systemd --user
��� ���     ������24560 (sd-pam)
[...]
chivo:~/:[0]# free -m
              total        used        free      shared  buff/cache   available
Mem:           1643         739         715           0         188         739
Swap:          1023          29         994
--<


You are receiving this mail because: