Hacker News new | ask | show | jobs
by man8alexd 25 days ago
There is some kind of illusion or myth that strict overcommit solves memory management issues.
1 comments

Not before userspace software is fixed, it doesn't.
You can't fix the fact that you can't predict the future. The software will always allocate more memory than it needs because it can't predict its future resource usage, so limiting memory allocation with strict overcommit is meaningless.
I disagree... it should not allocate much (like 2x) more than it needs right now...

(allocating virtual memory, but not committing is different, and should be handled with MAP_NORESERVE (or similiar)).