Re: Out Of Memory in v. 2.1

Andrea Arcangeli (andrea@e-mind.com)
Tue, 6 Oct 1998 02:40:07 +0200 (CEST)


On 5 Oct 1998, Stefan Monnier wrote:

>>>>>> "Albert" == Albert D Cahalan <acahalan@cs.uml.edu> writes:
>> Overcommit tracking must be system_wide, but it doesn't need
>> to apply to all processes. If data for all processes is kept,
>
>Choosing overcommitment on a per-process basis sounds like a good idea (though
>probably painful to setup since you'd have to specify process by process, but
>you could probably have a default of overcommit==(! user==root)).
>
>Turning off overcommitment doesn't save you from figuring out what to do when
>you run out of memory (return NULL from malloc is very nice, but if this malloc
>was executed by /sbin/init, it might not be such a good idea).

glibc handle a malloc directly with mmap() so overcommit pratically does
nothing right now in a glibc system I think.

(overcommit is a check that _sbrk()_ does before use mmap to map the
memory)

Andrea[s] Arcangeli

-
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/