Re: Overcomittable memory

From: Peter Svensson (petersv@psv.nu)
Date: Fri Mar 17 2000 - 04:41:10 EST


On Thu, 16 Mar 2000, James Sutherland wrote:

> The problem is, that fork() allocates memory - the same amount as the
> parent process has allocated. If you want to honour this without
> overcommit, you must disable COW - otherwise you've overcommitted your
> memory.

Of course not. COW is simply a speed optimization. You can still allocate
the pages at fork time but delay the actual copying until write time. COW
is orthogonal to the allocation (or at least the accounting) of pages.

Peter

--
Peter Svensson      ! Pgp key available by finger, fingerprint:
<petersv@psv.nu>    ! 8A E9 20 98 C1 FF 43 E3  07 FD B9 0A 80 72 70 AF
<petersv@df.lth.se> !
------------------------------------------------------------------------
Remember, Luke, your source will be with you... always...

- 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 : Thu Mar 23 2000 - 21:00:20 EST