[systemd-devel] unable to attach pid to service delegated directory in unified mode after restart

Silvio Knizek killermoehre at gmx.net
Mon Feb 21 22:22:03 UTC 2022


Am Montag, dem 21.02.2022 um 22:16 +0100 schrieb Felip Moll:
> Silvio,
>
> As I commented in my previous post, creating every single job in a
> separate slice is an overhead I cannot assume.
> An HTC system could run thousands of jobs per second, and doing extra
> fork+execs plus waiting for systemd to fill up its internal
> structures and manage it all is a no-no.
And how about an xinitd style daemon, excepting connections and
spawning processes that way?
So instead of sgamba1.service you would have a sgamba1 at .service and a
sgamba1.socket, spawning sgamba1 at user1.service, sgamba1 at user2.service,
etc. units.
So even if one user process dies, nothing else dies. And the setup
overhead would only be once everytime a user creates a new connection.
So they can still drop their one million jobs and you has still user
isolation.


More information about the systemd-devel mailing list