From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 15682 invoked from network); 10 Mar 1999 15:11:02 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 10 Mar 1999 15:11:02 -0000 Received: from torr (root@dynatec.com [206.16.90.117]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id KAA18562 for ; Wed, 10 Mar 1999 10:04:09 -0500 Received: from gumby.dynatec.com by torr with smtp (Linux Smail3.1.29.1 #3) id m10KkaL-0009jLC; Wed, 10 Mar 99 07:07 PST Date: Wed, 10 Mar 1999 07:05:30 -0800 (PST) From: Matt Nelson To: axp-list@redhat.com cc: hjstein@bfr.co.il Subject: Re: Fortran: Large static arrays = unal trap + core In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 10 Mar 1999, Harvey J. Stein wrote: > Matt Nelson writes: > > everybody around here uses Fortran (egcs/g77). i have some users that > > need very large arrays, i.e., several hundreds of megabytes. here's how > > they set it up (don't ask... there is an evolutionary reason for this > > convoluted way to do it...): > > > > - declare some dummy arrays: real dummy1(60000000) (three of em) > > - save an I*8 pointer to the array: pointer=%loc(dummy1(1)) > > - pass the pointer to subroutines that do the meat of the work via > > %val(pointer) > > > > here's the problem. sometimes the code works fine, and other times it > > core dumps immediately when executed, triggering an unaligned trap message > > in /var/log/messages. > > > > system: LX164, 512M + 512M swap, Red Hat 5.2 + 2.2.1 kernel > > > > does anybody have any idea what's going on? > > The unaligned traps are a little weird, but can it be that the other > processes are sucking up enough memory that the program is running out > of memory? I've found core dumping immediately to often indicate > using too much memory. well, the thing is asking for something like 750M of memory on a 1G system (physical+swap). it is the only active user job when it core dumps. could the memory get too fragmented to allow for declaration of such a large array? (i don't know the mm internals, so i'm clueless on this point). -matt ----------------------------------------------------------------------------- Matthew Nelson Dynamics Technology, Inc. 21311 Hawthorne Blvd., Suite 300, Torrance, CA 90503-5610 Voice: (310) 543-5433 FAX: (310) 543-2117 Email: mnelson@dynatec.com