LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how do i increase user stacksize? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-increase-user-stacksize-220377/)

zepplin611 08-20-2004 09:33 PM

how do i increase user stacksize?
 
Greetings,

When i type: limit at the command line of a RH 9.0 box i get the following:

cputime unlimited
filesize unlimited
datasize unlimited
stacksize 8192 kbytes
coredumpsize unlimited
memoryuse unlimited
vmemoryuse unlimited
descriptors 1024
memorylocked unlimited
maxproc 7168


Assuming I can go root, how do i change the stacksize to a larger number???

thanks...


zepp

btmiller 08-20-2004 10:55 PM

ulimit -s <new stack size> works for me as a non-root user in RH9 (I don't think any of the default ulimits are configured as hard limits). Just out of curiousity, why do you want to do this?

zepplin611 08-20-2004 11:28 PM

thanks for the help with this...

oh, and the reason why? well, i'm compiling a pgm that has very large sized arrays and i'm
getting segmentation faults (i have 1GB of RAM inthe system) and i was thinking that if the
stack was made "unlimited" then these seg-faults would cease...sadly they didn't...looks like i
need to continue optimizing the code! :)


All times are GMT -5. The time now is 01:43 AM.