Subject: Re: sbrk: grow 16384 failed, error = 12
To: Richard Earnshaw <Richard.Earnshaw@buzzard.freeserve.co.uk>
From: Wolfgang Solfrank <ws@tools.de>
List: current-users
Date: 02/23/2005 01:51:27
Hi,

>Running -current from about a week ago on an evbarm board (IQ31244) a 
>build of libgcj.so (from gcc 4 sources) is dying with the error:
>
>	sbrk: grow 16384 failed, error = 12
>
>Any clues as to why?  It's not the overall process size (I've upped the 
>data segment size to 1GB and it's not getting anywhere near that).  It 
>seems that it's running out of free pages (ie isn't swapping pages out 
>fast enough to satisfy demand), but why isn't it just waiting for more to 
>become available?
>
>Is there a sysctl I can tweak to up fmin and ftarg?

Hmm, since I just looked into this on the amd64 platform, it's almost
certainly a problem with the kernel running out of virtual memory.
Our VM system uses quite some memory for housekeeping, at least
16 bytes per page on 32-bit machines plus the machine dependent stuff.
While I thought that this would mostly be a problem on 64-bit machines
(with its much larger address space, but until now similar kernel virtual
memory limits), your mail seems to indicate that at least some 32-bit
boxes have similar problems.

Ciao,
Wolfgang
-- 
ws@TooLs.DE                            Wolfgang Solfrank, TooLs GmbH