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 Mon, 6 Mar 2000, Paul Jakma wrote:

> 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?
[snip]

This isn't the only case. Linux uses COW paging on fork. I.e. if an app
forks, it doesn't get a seperate copy of pages until it writes to them.
This is a termendous speed increase (no copies until needed, cache, etc)
and quite a bit of memory savings, but you lose this memory saving if you
turn off overcommit.



-
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.161 / U:0.788 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site