From owner-freebsd-current@FreeBSD.ORG Fri Jan 28 14:35:35 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EDE0816A4CE for ; Fri, 28 Jan 2005 14:35:35 +0000 (GMT) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id C069843D49 for ; Fri, 28 Jan 2005 14:35:35 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) j0SEZZOS031428; Fri, 28 Jan 2005 06:35:35 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost)j0SEZZMq031427; Fri, 28 Jan 2005 06:35:35 -0800 (PST) (envelope-from sgk) Date: Fri, 28 Jan 2005 06:35:35 -0800 From: Steve Kargl To: huang wen hui Message-ID: <20050128143535.GA31393@troutmask.apl.washington.edu> References: <20050127144411.GA28920@falcon.midgard.homeip.net> <20050128021633.96475.qmail@web51805.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050128021633.96475.qmail@web51805.mail.yahoo.com> User-Agent: Mutt/1.4.2.1i cc: current@freebsd.org Subject: Re: f77 could not allloc memory large than 512M? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jan 2005 14:35:36 -0000 On Fri, Jan 28, 2005 at 10:16:33AM +0800, huang wen hui wrote: > --- Erik Trulsson ???????? > > On Thu, Jan 27, 2005 at 09:58:24PM +0800, huang wen > > hui wrote: > > > hi, > > > This simple program could not run under > > FreeBSD/i386 > > > CURRENT or STABLE: > > > > > > program PROG > > > real A(128*1024,1024) > > > end > > > > > > $./prog > > > Abort > > > > > > $ldd ./prog > > > ./prog: > > > ./prog: signal 6 > > > > > > According to > > > "http://www.delorie.com/gnu/docs/gcc/g77_24.html", > > > I believe that f77 could not handle the array > > large > > > than 512M. f77 should give "too large to handle" > > > message when compiling the source. Do I miss > > something > > > or having some option can solve this problem? > > > > You are probably running into the default limits for > > how much resources > > a process can use. By default a process can not use > > more than 512MB of > > data. > > Read the limits(1) manpage for information on how to > > change these > > limits. > > Still not work: > # limits -d 1024M ./prog > Abort > Works fine here. Assuming you're using FreeBSD's default shelll, what does limit say? kargl[206] limit cputime unlimited filesize unlimited datasize 1048576 kbytes stacksize 131072 kbytes coredumpsize unlimited memoryuse unlimited vmemoryuse unlimited descriptors 11095 memorylocked unlimited maxproc 5547 sbsize unlimited -- Steve