On Fri, Oct 07, 2011 at 03:27:28PM +0100, Alex Davies wrote: > Hi Willy, > > Thank you for your detailed explanation; you are entirely right and the > limit that was screwing me was the limit of fds/process which I have now > fixed. > > Can you explain which parameter should be set to 2 to prevent malloc() fails > when there is no more memory left?
It's a sysctl : sys.vm.overcommit_memory You should also check overcommit_ratio which indicates how much of the total memory may be allocated by malloc. Willy

