From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.)
Subject: Re: Increase stack size with C-compiler.
Date: 1998/01/28 [thread overview]
Message-ID: <6anvfi$g7b@nntpd2.cxo.dec.com> (raw)
In-Reply-To: 6ajel0$l5r$1@news.rain.org
In article <6ajel0$l5r$1@news.rain.org>, "Emmanuel STAPF" <manus@eiffel.com> writes:
> what is the way to increase the stack size with a C-compiler ? I am
>working on a workstation alpha 3000/500 with the OS DEC digital Unix 4.0C.
Most shells set the resource limits for the processes they start. Check
the manual for the shell that you're using to see how to raise the limit
within the system maximum. Csh uses "limit" and I think ksh uses "ulimit".
The program itself can use the setrlimit(2) system call to change the
limit itself.
If the system limit is too low you can change it with sysconfig. Using
dxkerneltuner, it appears that the default and system maximum for the
stack size are part of the "proc" subsystem:
per-proc-stack-size
max-per-proc-stack-size
The first appears to be the default, with the 2nd the system maximum.
You can use dxkerneltuner to change them, so they'll take affect the
next time the system is booted.
>Jacques.
--
Alan Rollow alan@nabeth.cxo.dec.com
prev parent reply other threads:[~1998-01-28 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-01-26 5:00 Increase stack size with C-compiler Emmanuel STAPF
1998-01-28 5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes. [this message]
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