On Thu, 25 Feb 1999, David Vowles wrote:
> Dear list,
>
> (1) I recall a discussion in this forum on how to extend the relatively
> small 2MB default stack-size limit under Digital Unix. However, I
> seem to have misplaced/lost the relevant files. ...
On most or all UNIXes, this limit can be raised from the shell. If
you use csh, the cmd is "limit"; if ksh, it's "ulimit". As in:
limit stacksize unlimited
>From within a program, there is a POSIX facility called "setrlimit()"
which can be used; I presume DEC has this, though I don't know for
sure. There's probably only a C binding, so you'll have to write
a Fortran wrapper.
Finally, a cmd like "limit stacksize unlimited" increases the limit
to a maximum value set by some kernel parameter. The kernel can be
configured to change this limit, but be careful, because picking the
wrong value can send your machine into nanaland....
-P.
--
*********** Peter S. Shenkin; Schrodinger, Inc.; (201)433-2014 ************
*********** [log in to unmask]; http://www.schrodinger.com ***********
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|