From: lindahl@pbm.com (Greg Lindahl)
Subject: Re: Maximum array size?
Date: 1999/02/22 [thread overview]
Message-ID: <7ar069$5mm@news3.newsguy.com> (raw)
In-Reply-To: rz7n22fx6kc.fsf@corton.inria.fr
Robert Harley <harley@corton.inria.fr> 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
next parent reply other threads:[~1999-02-22 5:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <rz7n22fx6kc.fsf@corton.inria.fr>
1999-02-22 5:00 ` Greg Lindahl [this message]
1999-02-10 5:00 Maximum array size? Owen Peter Vajk
1999-02-21 5:00 ` Shana Tackett
1999-02-21 5:00 ` Joachim Wesner
1999-02-21 5:00 ` Nobody
[not found] ` <7bqfk7$q53@bgtnsc03.worldnet.att.net>
1999-03-06 5:00 ` Ron Flory
1999-03-09 5:00 ` Shana Tackett
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox