[lkml]   [2000]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Linux 2.2.15pre12
On Fri, 3 Mar 2000, Alan Cox wrote:

> > Isn't this what /proc/sys/vm/overcommit_memory is for??
> Thats a quick heuristic check on/off not a detailed bit of accounting

another question, forgive me if it's stupid: Why do we even allow
overcommited memory? What reason is there is to support app's that
malloc() a huge amount of memory without using that memory?

as i understand it, currently linux grants all malloc's (unless
OOM or limits apply) and only really allocates the pages when an app
tries to access them. If we allocated memory straight away then we could
avoid OOM, by telling errant app's ENOMEM a lot earlier? couldn't we?

(i'm having a discussion with some other unix users at the moment about
linux's OOM vulnerability).


paul jakma.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:56    [W:0.110 / U:1.712 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site