Bug#929652: systemd: sshd processes are not put into the correct slice/scope

Michal Koutný xm.koutny at gmail.com
Mon Jun 24 21:18:01 BST 2019


Hi.

Failure to create the session is almost certainly the reason why the
processes are in wrong slice.

Note that the PID that is in journald is PID of the process who
connected to journald obtained via getpeercred. If it forks and the fd
is passed to another process, the logs will misreport the old PID.
(Given different PIDs in very short intervals, I don't think it's the
PID of the listening sshd process but I'm not sure if sshd children
don't fork again. I'd recommend checking also neighbor PIDs found in the
logs.)

To your problem, I guess you're hitting some limits of dbus-daemon, I'd
try increasing
    <limit name="max_connections_per_user">256</limit>
for you system dbus-daemon instace.

The second suggestion^W workaround would be to tweak
CPUWeight=/CPUShares= of dbus.service and sshd.service. Given
dbus.service ~2 times more that to sshd.service. This will likely cause
slightly more latency at clients but it can lower the strain on
dbus-daemon so that it brokers all pam_systemd requests.

HTH,
Michal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20190624/c6a2e598/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list