Memory Eater Implementation Task
Memory Eater Implementation Task: a task in Terminal-Lego-15k (Harbor dataset). When attempting to simulate an out-of-memory (OOM) situation on a Unix/Linux system, a naive approach of simply allocating memory with malloc() or realloc() often fails to actually consume physical memory. This is due…
The task
When attempting to simulate an out-of-memory (OOM) situation on a Unix/Linux system, a naive approach of simply allocating memory with `malloc()` or `realloc()` often fails to actually consume physical memory. This is due to Linux's memory overcommit feature and virtual memory management.
Part of PrimeIntellect/Terminal-Lego-15k.