Per-file OOM badness
Per-file OOM badness
Posted Jun 2, 2022 19:29 UTC (Thu) by developer122 (guest, #152928)Parent article: Per-file OOM badness
In reality, the amount of memory is tied to subtleties in the input. If you ask them to come up with a number, programmers usually just guess the amount and then the application occasionally runs out of memory and dies anyway. And it also dies in cases when borrowing some memory from the rest of the system would have saved it. Ask someone about setting container memory quotas sometime.
Maybe it's possible to have a compiler say "worst_case_mem_used=f(num_inputs1, num_inputs2)" and assign input constraints, but I doubt that will work in general.