Subject: Re: I Keep Getting Compiler Errors
To: Chris Amthor <amthor@chroam.de>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-sparc
Date: 06/21/2003 16:39:36
On Sat, Jun 21, 2003 at 10:12:50AM +0200, Chris Amthor wrote:
> On Fri, Jun 20, 2003 at 11:03:42PM +0200, Manuel Bouyer wrote:
> 
> [...]
> 
> > Did you check that you're not running out of swap ?
> 
> The system hardly touches its available swap space, since 100MB RAM
> are just too much for a 40MHz system to get filled.

It's not a matter of system speed, but of what you do with your system.
gcc can be a real memory hog at times, even on a slow system (it just takes
it longer to eat all RAM).

> I've assigned
> 256MB swap, but the uppermost use I have observed is about 20MB yet.

Even when the compile stops ?

> 
> > Maybe also try 'unlimit' in your shell.
> 
> What does this do?

It raises all the soft limits to hard limits. e.g.:
rochebonne:/usr/src/1.6/src/sys/arch/i386/conf>limit
cputime         unlimited
filesize        unlimited
datasize        131072 kbytes
stacksize       2048 kbytes
coredumpsize    unlimited
memoryuse       250544 kbytes
descriptors     64 
memorylocked    83514 kbytes
maxproc         160 
rochebonne:/usr/src/1.6/src/sys/arch/i386/conf>unlimit 
rochebonne:/usr/src/1.6/src/sys/arch/i386/conf>limit
cputime         unlimited
filesize        unlimited
datasize        1048576 kbytes
stacksize       32768 kbytes
coredumpsize    unlimited
memoryuse       250544 kbytes
descriptors     1772 
memorylocked    250544 kbytes
maxproc         532 

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 24 ans d'experience feront toujours la difference
--