Re: Overcommitable memory??

From: Horst von Brand (vonbrand@sleipnir.valparaiso.cl)
Date: Sat Mar 18 2000 - 18:01:32 EST


Jesse Pollard <pollard@tomcat.admin.navo.hpc.mil> said:

[...]

> I wonder if it could be coded as
> fork() --- reserve one or two pages for anticipated fork.
> on next page fault or syscall -- If page fault or non-exec syscall,
> reserve the entire worst case memory amount.

Here your fork(2) could fail, if no overcommit. But the fork() in the
parent has already returned...

> If syscall is exec then allocate/reserve memory for the
> new image.

-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile                               +56 32 672616

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