Also reminds me that I really would like to find a way that PG can detect allocation failures without requiring memory overcommit to be turned off globally. Just causes too many other programs to misbehave, and is a complicated explicit configuration.https://twitter.com/AndresFreundTec/status/1225559052475871233 …
What you would have to do to make sure you never run into not having memory available to back an earlier allocation, is to always immediately back it with memory, while the OS can signal an error. But that a) isn't easy b) has some DOS potential and such.
-
-
MAP_POPULATE, mentioned earlier, is basically a way to achieve that. But we also do not necessarily *want* that for everything - it's wasteful to use up memory for some of these things.
-
Thanks for the additional details. Once more I had a much simplified model in mind. Will have to think about that more I guess.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.