[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: slapd crashes with ch_realloc of X bytes failed



> 2013/1/12 Meike Stone <meike.stone@googlemail.com>:
>
> What I see, that slapd had reserved "Total: 7350688K"
> (overcommitted?), but only referenced 4900700K.
> Why does slapd reserve so much memory and use it not? Because of this,
>  I changed the default values for memory overcomittment
>
> from:
> vm.overcommit_memory = 0 (guess, default)
> vm.overcommit_ratio = 50
>
> to:
> vm.overcommit_memory=2 (strict overcommit)
> vm.overcommit_ratio=100
>
> but it crashed again (ch_malloc of 34545 bytes failed):
> .

I was wondering, why it crashed in spite of overcommitting .

The solution sometimes is simple, but "far away"  ;-) ...:
~# ulimit -v
7353440

Thanks Meike