Linux / systemd; private mount namespace; memory controller disabled fixture $ cat /sys/fs/cgroup/cgroup.controllers cpuset cpu io pids No memory.low or memory.min files exist in this fixture. Drop-in writes and manager OOM-score writes are confined to private mounts. systemctl queries and daemon-reload use the real managers; no service is restarted. $ t3 service status --base-dir '%h/.t3' T3 Code service Status: needs an update or repair Unit: $HOME/.config/systemd/user/t3code.service Logs: Memory protection: off, user.slice grants none. Run `t3 service protect`. OOM score: 200 Next: Run `t3 service install --base-dir %h/.t3` to repair it. Exit: 0 $ t3 service protect --base-dir '%h/.t3' # decline remote protection; accept application in isolated mounts Keeps T3 Code running when agents fill this machine's memory: - reserves memory for the T3 Code server, so the kernel takes memory from agents first - makes the out-of-memory killer pick agents before the server It adds systemd drop-in files and changes nothing else. Undo with `t3 service protect --undo`. ? Also protect tailscaled and ssh so you can still reach this machine under memory pressure? › (y/N)✔ Also protect tailscaled and ssh so you can still reach this machine under memory pressure? … no Drop-ins it writes, as root through sudo: /etc/systemd/system/user.slice.d/90-t3code-protect.conf: MemoryLow=2G /etc/systemd/system/user-1000.slice.d/90-t3code-protect.conf: MemoryLow=2G /etc/systemd/system/user@1000.service.d/90-t3code-protect.conf: MemoryLow=2G OOMScoreAdjust=-900 As you: $HOME/.config/systemd/user.conf.d/90-t3code-protect.conf: DefaultOOMScoreAdjust=200 $HOME/.config/systemd/user/app.slice.d/90-t3code-protect.conf: MemoryLow=1536M $HOME/.config/systemd/user/init.scope.d/90-t3code-protect.conf: MemoryLow=256M $HOME/.config/systemd/user/t3code.service.d/90-t3code-protect.conf: OOMScoreAdjust=-900 ? Apply these settings? › (y/N)✔ Apply these settings? … yes Protected T3 Code. Memory protection applies now; the server takes its OOM score after `t3 service restart`. Undo with `t3 service protect --undo`. Exit: 0 $ t3 service status --base-dir '%h/.t3' # after protect T3 Code service Status: needs an update or repair Unit: $HOME/.config/systemd/user/t3code.service Logs: Memory protection: off, user.slice grants none. Run `t3 service protect`. OOM score: 200 Next: Run `t3 service install --base-dir %h/.t3` to repair it. Exit: 0 Isolated application check: system drop-in exists: True Isolated manager OOM-score write: 100