Re: Question on the current behaviour of malloc () on Linux

From: Jesper Juhl
Date: Wed Dec 21 2005 - 13:59:42 EST


On 12/21/05, linux-os (Dick Johnson) <linux-os@xxxxxxxxxxxx> wrote:
[snip]
>
> To make your wishes come true execute:
> echo "1" >/proc/sys/vm/overcommit_memory

s/"1"/"2"/

> ... as a super-user.
>
> That will make malloc() fail when there isn't any more virtual
> memory.
>
[snip]

--
Jesper Juhl <jesper.juhl@xxxxxxxxx>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/