News for hackers. Stuff that matters.
Re:Linux Memory Overcommit (2007) by dap on Sunday August 18, 2024 @06:12PM (#41285959)
I’m not sure how this works on Linux exactly but in principle you don’t need to support overcommit to avoid that problem. On illumos for example anonymous memory allocations come from swap, which is a virtual resource that includes both disk and memory. You do still have this problem if something is using more than half of swap, but (1) that’s much larger, and (2) you can augment it with more disk space, which won’t actually be used unless stuff actually uses all the physical memory. This has its own tradeoffs but it’s useful to keep in mind that there are other ways to do things.
Re:Linux Memory Overcommit (2007) by wmf on Sunday August 18, 2024 @06:58PM (#41286233)
If available memory means physical + swap then you're saying the same thing as pcwalton.
Re:Linux Memory Overcommit (2007) by pcwalton on Monday August 19, 2024 @01:40AM (#41288115)
Right, available memory includes swap. (That's why I didn't say "available RAM".)