Re: Linux 2.2.15pre12

From: Gregory Maxwell (greg@linuxpower.cx)
Date: Mon Mar 06 2000 - 10:56:33 EST


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/



This archive was generated by hypermail 2b29 : Tue Mar 07 2000 - 21:00:20 EST