TECHNOLOGY

systemd descriptor storage does not preserve a model process checkpoint

In this article
THE QUICK TAKE

FileDescriptorStoreMax configures the permitted store size and defaults to zero. Services send descriptors using the documented FDSTORE notification mechanism; stored descriptors are passed back to the service's main process on restart. The manual discusses serializing application state into a runtime file or a memory file descriptor. That serialization is work the application performs. It is not a process-memory snapshot and does not preserve arbitrary accelerator state without a separate s.

Keeping a socket open across a worker restart is useful, but it is not the same as preserving a running model. systemd’s file descriptor store retains references to objects deliberately handed to the manager. GPU allocations, application heaps and request progress do not automatically become restartable because a descriptor was stored. The recovery boundary must be designed explicitly.

The service-manager contract

FileDescriptorStoreMax configures the permitted store size and defaults to zero. Services send descriptors using the documented FDSTORE notification mechanism; stored descriptors are passed back to the service’s main process on restart. The manual discusses serializing application state into a runtime file or a memory file descriptor. That serialization is work the application performs. It is not a process-memory snapshot and does not preserve arbitrary accelerator state without a separate supported protocol.

Implementation details

Specify the object type, restoration format and ownership before enabling storage. Configure notification access and inspect effective FileDescriptorStorePreserve behavior: release depends on service state and preservation policy. Stored objects can also be removed when their descriptors report relevant hangup or error events. Do not put sensitive data into descriptor metadata or names; the manual distinguishes protected file contents from metadata that other clients may be able to enumerate. Retain non-sensitive identities for restoration diagnostics.

A constructed validation case

Construct a small service that stores a harmless socket or serialized marker, then restarts and validates the returned object. Compare enabled capacity with a configuration that provides no store. Add a malformed restoration payload and a preservation-policy branch that deliberately releases the object on stopping. Observe successful object recovery separately from the application’s readiness. A model-serving adaptation should demonstrate rebuilding model state and rejecting incompatible serialized state rather than assuming the retained descriptor makes those steps unnecessary.

Recovery limits

A retained descriptor is not durable backup across host loss or manager exit. Reference lifetime and persistence are different properties. Notification delivery also needs its documented acknowledgement and attribution reasoning; a successful send alone is not an application recovery proof. Validate descriptor inventory, restored content and functional behavior independently. Limit conclusions to the tested object and restart path, and keep the original failure visible when the replacement cannot restore useful service.

Primary references

systemd systemd.service documented interface; systemd sd_notify 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.

Reproducible inference stacks: preserving a GPU pilot’s result; 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