Re: Commenting out out_of_memory() function in __alloc_pages()

From: Al Boldi
Date: Tue Jul 11 2006 - 15:54:30 EST


Chase Venters wrote:
> On Tue, 11 Jul 2006, Abu M. Muttalib wrote:
> > I fail to understand that why the OS doesn't return NULL as per man
> > pages of malloc. It insteat results in OOM.
>
> If you want strict malloc(), you can use the sysctl to turn off
> overcommit. It's even appropriate to do so for certain applications.

The problem is, there is no way to turn off overcommit completely.

Arjan said something about shared libs depending on overcommit :(

Thanks!

--
Al

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