TECHNOLOGY

Accept=yes creates connection-scoped services rather than request batches

In this article
THE QUICK TAKE

The systemd.socket manual defines Accept=yes as spawning an instance for each incoming connection and passing only that connection socket. With Accept=no, the listening sockets are passed to one service unit handling connections. Datagram sockets and FIFOs do not follow the per-connection choice; the setting is ignored for them. The yes case uses a templated service. This describes transport activation, not any scheduler for tokens or tensor batches.

A TCP connection is not an inference request. HTTP keep-alive, multiplexing and streamed responses can place several application operations within a connection lifetime. Accept=yes in a systemd socket unit starts service instances around accepted connections. Treating that mechanism as automatic request batching or model-worker pooling gives the wrong resource and isolation model for an inference deployment.

The service-manager contract

The systemd.socket manual defines Accept=yes as spawning an instance for each incoming connection and passing only that connection socket. With Accept=no, the listening sockets are passed to one service unit handling connections. Datagram sockets and FIFOs do not follow the per-connection choice; the setting is ignored for them. The yes case uses a templated service. This describes transport activation, not any scheduler for tokens or tensor batches.

Implementation details

Before adopting connection-scoped instances, determine where model weights and GPU contexts live. Starting a heavyweight model process for every connection can repeat initialization and change memory pressure, but the actual cost requires measurement rather than an invented estimate. A lightweight connection handler forwarding to an existing worker has a different architecture. Specify who accepts requests after transport activation, how connection closure affects outstanding work, and which component owns request-level authentication and scheduling.

A constructed validation case

Use a harmless test service that records instance identity and connection lifetime. Send repeated synthetic requests over a persistent connection, then compare separate connections and the shared-listener Accept=no arrangement. Observe instance count independently from request count. Include early connection closure and a request that outlives a client-side timeout. The expected result is a documented mapping between transport and application work, without assuming that ending the instance cancels every external operation it may have initiated.

Recovery limits

Per-connection process isolation can be useful for appropriate services, but it does not provide a model-serving performance ranking. Keep the protocol, initialization placement and effective service limits fixed in any comparison. Account for the distinction between listening and accepted sockets when using activation libraries. Choose the activation pattern according to the real process architecture; test request admission, model readiness and recovery separately from the connection-to-instance mapping.

Primary references

systemd systemd.socket documented interface; systemd systemd.service documented interface.

This is a proposed service-lifecycle validation, not an executed Retrivium benchmark. Preserve the implementation version and unresolved outcomes; interface documentation does not establish the availability or correctness of an inference service.

An inference API conformance matrix for providers; Golden inference API fixtures: test the contract rather than prose.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles