Date: Thu, 1 Oct 1998 18:36:22 +0930 From: Greg Lehey <grog@lemis.com> To: Heinrich Siebert <spinner.rflab@t-online.de>, freebsd-questions@FreeBSD.ORG Subject: Re: C compiler limits Message-ID: <19981001183622.B24146@freebie.lemis.com> In-Reply-To: <36133998.30772036@t-online.de>; from Heinrich Siebert on Thu, Oct 01, 1998 at 10:13:12AM %2B0200 References: <36133998.30772036@t-online.de>
next in thread | previous in thread | raw e-mail | index | archive | help
[Format autorecovered at freebie.lemis.com] On Thursday, 1 October 1998 at 10:13:12 +0200, Heinrich Siebert wrote: > The following problem occurs in FreeBSD, trying to compile numerical > software with large need of memory ( about 30 MB ): > > Compiling ANSI C source code fails by (assembler) run-out of virtual > memory in /var/tmp/... Well, it runs out of virtual memory. It's not related to a directory. > Whence those questions: > > 1. How can I rise the pertinent compiler limits ( which are > these - and where to be found ) ? They're not compiler limits, they're system limits. Take a look at /etc/login.conf. There's a man page to go with it. For example, I have an entry: # # grog - for the greedy user # grog:\ :path=~/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin:\ :cputime=infinity:\ :datasize=infinity:\ :stacksize=infinity:\ :memorylocked=infinity:\ :memoryuse=infinity:\ :filesize=infinity:\ :coredumpsize=infinity:\ :openfiles=infinity:\ :maxproc=infinity:\ :memoryuse-cur=infinity:\ :maxproc-cur=512:\ :openfiles-cur=1024:\ :priority=0:\ :requirehome@:\ :umask=022:\ :tc=auth-root-defaults:\ This entry name must match the login class in the /etc/master.passwd file. You might find it easier just to modify the default: entry. > 2. Can I cause the compiler to fall back on swap instead of > /var/tmp/... ( 100 MB of swap are installed ) ? No. That happens automatically, and you can't stop it. > (The problem does not arise with Linux ). Then that would be a bug, not a feature, in Linux. The purpose of the login.conf limits is to stop people from hogging the machine in a multiuser environment. But I suspect that Linux has something similar. BTW, Linux and FreeBSD use the same compiler. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981001183622.B24146>