From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,b0745a0b15631e1d X-Google-Attributes: gid111c93,public From: lindahl@pbm.com (Greg Lindahl) Subject: Re: Maximum array size? Date: 1999/02/22 Message-ID: <7ar069$5mm@news3.newsguy.com>#1/1 X-Deja-AN: 446999423 References: Organization: a guest of Shadow Island Games Newsgroups: comp.os.linux.alpha Robert Harley writes: > > lindahl@pbm.com (Greg Lindahl) writes: > > You have a funny definition of "best solution". Did you realize that > > Fortran programs exist? That important programs like XFree86 allocate > > lots of memory on the stack? That not all the world is one style of C > > program? > > Did you get out of the wrong side of the bed this morning, Greg? > > > The question was undoubtedly about C, since it asked why the following > program didn't work: That C program does the same thing that most F77 programs do, so my posting was quite relevant. > The suggestion to use malloc() and free() is quite certainly the best > one in general, although allocating a global array is fine for this > example. No, because that solution does not generally solve the problem for this class of program, which includes many F77 codes as well as complicated programs such as XFree86, which are in C and can't be trivially converted to use malloc() and free(). Perhaps I should have spent more time explaining so you didn't think I was just trying to be an asshole. This is a real problem that many kernel people just don't understand; they jump to the same conclusion you do. > In answer to your question, the openfiles limit does seem to be > increased on new kernels (but stacksize isn't): Well, I suppose 1024 fixed is better than 256 fixed... -- g