Hacker News new | ask | show | jobs
by silon42 23 days ago
Not before userspace software is fixed, it doesn't.
1 comments

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)).