Smaller image: fewer kernel modules and files, unused services removed, oomd for jobs
- Kernel modules: all but hardware drivers, plus the VM and podman network drivers. - Removed: System.map, the udev hwdb, and the homed/userdbd/nsresourced units. - Job image: no translations (Locale=C.UTF-8). - systemd-oomd kills the job container that runs the VM out of memory. - gitea-runner waits for first-boot setup instead of restarting every 10s. - Tighter comments in the sysctl config; Verify=no explained in the transfers. /usr: 367 -> 307 MB, update download 317 -> 260 MB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V27snrGfdvwU7pMNBiDpHv
This commit is contained in:
9 files changed
+64
-21
No files matched your search
@@ -0,0 +1,8 @@
|
||||
# systemd-oomd for job containers, which podman runs in this slice: when jobs run the VM out of
|
||||
# memory, kill the job container responsible, before the VM thrashes on zram swap or the kernel's
|
||||
# OOM killer picks the runner or podman.
|
||||
[Slice]
|
||||
# Memory pressure above 60% for 30s: kill the container reclaiming the most memory.
|
||||
ManagedOOMMemoryPressure=kill
|
||||
# Swap over 90% full: kill the container using the most swap.
|
||||
ManagedOOMSwap=kill
|
||||
Reference in new issue
Block a user