I explored in editor mode and run a few commands to further afk explore, as mapgen takes a while, which made the map quite big and was generating during the fork-saving, since fork uses copy on write memory allocation i guess it went boom as both processess' ram contents diverged too fast ...
Long story short: It got me the forked factorio saving process OOM-Killed. This in turn made the factorio main process die too.
What I would expect in such a case is to get a big red warning in the chat stating that fork-saving failed (ideally showing the reason (sigterm in this case)) and repeat the saving while blocking/pausing the game as if the fork-saving mechanism was not enabled.
Relevant parts of dmesg:
Code: Select all
[Sat Apr 6 02:54:57 2024] Tasks state (memory values in pages):
[Sat Apr 6 02:54:57 2024] [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name
[Sat Apr 6 02:54:57 2024] [ 73377] 1000 73377 5527248 2807998 39755776 0 200 factorio
[Sat Apr 6 02:54:57 2024] [ 124042] 1000 124042 5777336 2926700 40886272 0 200 factorio
[Sat Apr 6 02:54:57 2024] Out of memory: Killed process 124042 (factorio) total-vm:23109344kB, anon-rss:11706800kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:39928kB oom_score_adj:200