Re:Dealing with Out-of-Memory Conditions in Rust
by superjan on Saturday August 14, 2021 @09:21AM
(#28180393)
It won’t. I was thinking more about backend components where you allocate a fixed per request memory budget. It would work best if you could apply the budget per in-flight request. In case a request goes over budget, only the affected (presumably nefarious) request gets terminated, other requests and other processes will run uninterrupted.
Re:Dealing with Out-of-Memory Conditions in Rust
by 1f60c on Saturday August 14, 2021 @09:08AM
(#28180320)
...and missiles: https://devblogs.microsoft.com/oldnewthing/20180228-00/?p=98...
Re:Dealing with Out-of-Memory Conditions in Rust
by SiebenHeaven on Saturday August 14, 2021 @11:52AM
(#28181605)
Most commonly used software such as browsers can abort on OOM, this isn't about those cases at all.
In conditions that you do not want to abort, usually you can and would want to allocate pool before hand.
This might be feasible with some limited-in-features apps, like an audio/video player, an IM client, etc...