logoalt Hacker News

underliptontoday at 2:40 AM4 repliesview on HN

Because OoM errors are oh so fun.


Replies

connicputoday at 6:33 AM

I write algorithms that operate on predictable amounts of data. It's very easy to work out the maximum amount of things we need to have and then allocate it all in fixed size arrays. If you allocate all your memory at startup you can never OOM at runtime. Some containers need over 100GB but like the parent comment said we've already bought the RAM.

stousettoday at 2:58 AM

Caches are automatically released by the OS when demand for memory increases.

show 1 reply
ed_elliott_asctoday at 7:52 AM

How often are ooms caused by lack of ram rather than programming?

show 1 reply
raverbashingtoday at 8:55 AM

I don't think MacOS OoMs as Linux

(and to be honest the way Linux does acts on OoMs are quite debatable)