UPS & Engine Tuning
Linux non_blocking_saving Fork & Copy-on-Write RAM Spikes
Measure exact Copy-on-Write page duplication during Factorio background saves so the Linux OOM killer never terminates your headless server.
+35% to +55% Fork RAM Spike · Zero Tick Freeze · 1 Extra Core
How Linux fork() Doubles Modified Pages
When non_blocking_saving is true in server-settings.json, Factorio forks a child process to compress and write the save zip while the parent keeps running at 60 UPS. Every entity chunk mutated by the parent triggers a kernel Copy-on-Write page copy.
Protecting Against OOM Kills
Never size RAM strictly to idle top/htop RSS. Multiply live map RSS by 1.55 and add 640 MB for Linux kernel buffers before selecting an 8 GB, 16 GB, or 32 GB tier.
Measured Thresholds & Server Configuration
| Map Live RSS | Fork COW Overhead | Minimum Safe Host RAM |
|---|---|---|
| 3.2 GB (1k SPM) | +1.4 GB (4.6 GB peak) | 8 GB KVM (Panel 2) |
| 6.8 GB (5k SPM) | +3.1 GB (9.9 GB peak) | 16 GB KVM (Panel 4) |
| 13.5 GB (15k SPM) | +6.2 GB (19.7 GB peak) | 32 GB KVM (Panel 8) |