From owner-freebsd-questions Thu Oct 1 02:07:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA15086 for freebsd-questions-outgoing; Thu, 1 Oct 1998 02:07:22 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA15074 for ; Thu, 1 Oct 1998 02:07:15 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id SAA01226; Thu, 1 Oct 1998 18:36:47 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id SAA24197; Thu, 1 Oct 1998 18:36:22 +0930 (CST) Message-ID: <19981001183622.B24146@freebie.lemis.com> Date: Thu, 1 Oct 1998 18:36:22 +0930 From: Greg Lehey To: Heinrich Siebert , freebsd-questions@FreeBSD.ORG Subject: Re: C compiler limits References: <36133998.30772036@t-online.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <36133998.30772036@t-online.de>; from Heinrich Siebert on Thu, Oct 01, 1998 at 10:13:12AM +0200 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [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