Re: Overcomittable memory

From: James Sutherland (jas88@cam.ac.uk)
Date: Thu Mar 16 2000 - 06:11:59 EST


On 15 Mar 2000, Rask Ingemann Lambertsen wrote:

> Den 13-Mar-00 22:16:31 skrev James Sutherland følgende om "Re: Overcomittable memory (Was: Linux 2.2.15pre12)":
>
> > If you REALLY want to allow for the worst case: Each process has an
> > address space of 3 Gb (+1Gb kernel). Your method would require, for a
> > sytem with a hard limit of 1024 processes, a minimum of 3Tb swap+RAM. You
> > can try this if you want, but I don't think many people will follow this.
>
> Somewhere along the line you misunderstood something fundamental. What
> it is that makes you conclude that you cannot have a system with no
> overcomitment of memory and, say, 64 MiB RAM + swap combined and a hard
> limit of 4096 processes?

You can. The trouble is, unless each process has a hard limit of just
under 64Kb, you can still run out of memory. With COW overcommit, you
could fit 100 20Mb Apache processes in that 64Mb - without it, you could
barely fit three. I know which I would opt for.

James.

-
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:18 EST