From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 20596 invoked from network); 8 Jul 1999 22:52:57 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 8 Jul 1999 22:52:57 -0000 Received: from ares.cs.Virginia.EDU (ftp.cs.Virginia.EDU [128.143.137.19]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id PAA20798 for ; Tue, 29 Jun 1999 15:26:44 -0400 Received: from adder.cs.Virginia.EDU (adder.cs.Virginia.EDU [128.143.137.18]) by ares.cs.Virginia.EDU (8.9.2/8.9.2/UVACS-1999030200) with ESMTP id PAA08355 for ; Tue, 29 Jun 1999 15:26:43 -0400 (EDT) From: Greg Lindahl Received: (from lindahl@localhost) by adder.cs.Virginia.EDU (8.8.5/8.8.5) id PAA08317 for axp-list@redhat.com; Tue, 29 Jun 1999 15:26:42 -0400 (EDT) Message-Id: <199906291926.PAA08317@adder.cs.Virginia.EDU> Subject: Re: The stack and digital unix binaries To: axp-list@redhat.com Date: Tue, 29 Jun 1999 15:26:42 -0400 (EDT) In-Reply-To: <37790E64.9F88154E@lanl.gov> from "Neil Carlson" at Jun 29, 99 12:20:20 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit > I have a large simulation code which I compile under digital unix > and then move the executable to an alpha/linux machine to run. > I frequently exceed the stack size, whose hard limit is hardcoded > to 8MB in include/linux/sched.h (look for _STK_LIM). The comments > written there suggest that this ought to be adequate. Perhaps, but > it depends on how it's used -- do the digital compilers use the stack > differently than gcc under linux would? You can increase your stack using the ulimit command. Try: ulimit -a ulimit -Ha ulimit -s new-size If you don't like the hard limit, then you can raise it by editing /etc/security/limits.conf (may be a RedHat-only hack, I dunno.) Alternately, you can tell Compaq Fortran to use static variable allocation. Most fortran compilers (like Compaq fortran and g77) allow you to pick stack or static. -- g