From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,86b7a70f78abdf2f X-Google-Attributes: gid11318c,public X-Google-Thread: 111c93,963c446b36150167 X-Google-Attributes: gid111c93,public X-Google-Thread: 1094ba,86b7a70f78abdf2f X-Google-Attributes: gid1094ba,public X-Google-Thread: 1014db,963c446b36150167 X-Google-Attributes: gid1014db,public X-Google-Thread: f9b51,963c446b36150167 X-Google-Attributes: gidf9b51,public X-Google-Thread: 1103af,963c446b36150167 X-Google-Attributes: gid1103af,public From: "Andrew P. Mullhaupt" Subject: Re: max. array size GNU C compiler... Date: 1999/08/20 Message-ID: <7pl2h1$ki4@dfw-ixnews10.ix.netcom.com>#1/1 X-Deja-AN: 515350483 References: <37BC4252.F83CD3E@ekkinc.com> <87r9kzebjj.fsf@pfaffben.user.msu.edu> <37BC4A9E.D3CC7FEC@ekkinc.com> <7pi0je$knv$1@nnrp1.deja.com> <37BD7803.E59265BE@ekkinc.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Netcom X-NETCOM-Date: Fri Aug 20 9:22:25 PM CDT 1999 X-MSMail-Priority: Normal Newsgroups: comp.lang.c,comp.os.linux.setup,comp.os.linux.misc,comp.os.linux.alpha,gnu.gcc.help,comp.lang.fortran EKK wrote in message news:37BD7803.E59265BE@ekkinc.com... > > > Another question is: Do you really need all those values in memory at > > the same time? Can you store the values in a file and only haul in > > small pieces that you are working on? {Works with matrices, and tables}. > > > > this would be a good thing, however, this is a finite element analysis > code which would need a massive overhaul to achieve what you describe > above, which would induce considerable loss of performance. It very well might not, if you use memory mapped files as the backing store for the variables. One of the simpler ways to do this would be to replace the memory allocation used by Fortran, in the case of F77 systems which have integer/Cray/Digital style pointers provide a way to do this. Then you can use the VM interface to access the array as if it were all in memory but with the operating system kernel aware that only a small part of it needs be in the resident set. On several flavors of Unix, this can provide a substantial performance benefit, as opposed to a loss. Theoretically, this would be an even bigger improvement on the Windows platforms, but you have to get through Microsoft's layer of goo on top of the VM interface, as well as certain deficiencies in the W95 implementation. This modification could, depending on hw your code is written, be accomplished in a very small number of lines of code changed. In the case of F9x and allocatable arrays, there doesn't seem to be a way to get around this problem. Later, Andrew Mullhaupt