Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-20-2004, 09:33 PM   #1
Registered: Jan 2004
Distribution: AIX 4.3 RH 7,8,9 / Fedora C1/
Posts: 187

Rep: Reputation: 30
how do i increase user stacksize?


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???


Old 08-20-2004, 10:55 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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?
Old 08-20-2004, 11:28 PM   #3
Registered: Jan 2004
Distribution: AIX 4.3 RH 7,8,9 / Fedora C1/
Posts: 187

Original Poster
Rep: Reputation: 30
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!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ndiswrapper on Fedora 3 (and 4k stacksize) unzari Linux - Wireless Networking 4 04-25-2005 07:16 AM
rebuild kernel with a stacksize of 8k? Peanutman Fedora 6 03-28-2005 02:20 PM
increase the process limit of user ust Linux - General 3 10-20-2004 05:06 AM
how to increase stacksize? pthreads and stacksize, winex3 deNiro Slackware 4 11-03-2003 02:00 PM
USB time out value (to increase or not increase) lynxgogo Linux - Hardware 0 07-24-2003 10:14 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration