lkml.org 
[lkml]   [2000]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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).

regards,

paul jakma.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.175 / U:9.092 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site