One systemd setting keeps a service out of swap
MemorySwapMax=0 on a systemd unit stops that one service from being swapped out while the rest of the machine still can be. How to set it, read it back and undo it, and what it costs.
Topic · 5 stories
5 stories tagged systemd on AI Tamer, newest first.
MemorySwapMax=0 on a systemd unit stops that one service from being swapped out while the rest of the machine still can be. How to set it, read it back and undo it, and what it costs.
The same line in an environment file can give three different values in Docker Compose, a systemd unit and a shell. Three documented differences: comments, backslashes and spaces.
Both run a job on a schedule. They differ in what happens when the machine was off, when the last run is still going, where the output ends up, and who hears about a failure.
What systemd waits for with Type=notify, when an application should send READY=1, and why short-lived helpers can lose notifications.
How systemd restart policy meets start-rate limits, and why clearing a failed counter is a separate step from fixing a service.