From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,d7a15de45a95c9b0 X-Google-Attributes: gid1164f8,public 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 Message-ID: <6anvfi$g7b@nntpd2.cxo.dec.com>#1/1 X-Deja-AN: 320042236 References: <6ajel0$l5r$1@news.rain.org> Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Distribution: world Organization: Digital Equipment Corporation Newsgroups: comp.sys.dec In article <6ajel0$l5r$1@news.rain.org>, "Emmanuel STAPF" 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