[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luac and loadstring hang
- From: Rob Kendrick <lua-l@...>
- Date: Mon, 16 Nov 2009 15:56:29 +0000
On Mon, 16 Nov 2009 13:47:32 -0200
Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
> > Actually "optimistic memory allocation".
>
> Right:
>
> "We learned that malloc should return NULL in case of out-of-memory.
> However, it is not the case in Linux. By default, Linux uses
> optimistic memory allocation strategy. Under this strategy,
> Linux assumes there always exists free memory..."
And any Firefox or OpenOffice users should be thankful, given how much
memory these travesties allocate and then never touch :)
You can turn off this over-commit by uttering the correct rune
into /proc somewhere, if memory serves.
B.