Subject: Re: NetBSD-1.5 : "Virtual Memory Exhausted"
To: port-amiga <port-amiga@netbsd.org>
From: Ignatios Souvatzis <is@beverly.kleinbus.org>
List: port-amiga
Date: 01/08/2001 22:53:39
On Mon, Jan 08, 2001 at 07:34:31PM +0100, Frank Wille wrote:
> Adam Ciarcinski wrote:
> 
> > > While compiling a sourcefile "testimg.c" the compiler exits with
> > > errormessage "virtual memory exhausted".
> > 
> > There is a memory usage limit.  Try to 'unlimit' or even 'unlimit -h'
> > when you are root.
> 
> Ohh... so easy? I chose the more complicated way in this situation.
> I compiled testimg.c with gcc under AmigaOS, then transfered the
> object back to NetBSD and replaced the a.out id (which was Sun3?)
> by NetBSD-68k. After that I was able to link. ;)
> 
> What is this memory limit, BTW? Can you modify it in the kernel
> config file? Why is it set so low?

You can set it as you wish. The default setting where reasonable at one time,
they prevent a runaway resource hog to affect all other users.

You can set the default limits per user-class in login.conf; read the 
limits and login.conf manual pages for more information.

Regards,
	-is