LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 30
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
 
Old 08-20-2004, 11:55 PM   #2
btmiller
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-21-2004, 12:28 AM   #3
zepplin611
Member
 
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!
 
  


Reply


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 08:16 AM
rebuild kernel with a stacksize of 8k? Peanutman Fedora 6 03-28-2005 03:20 PM
increase the process limit of user ust Linux - General 3 10-20-2004 06:06 AM
how to increase stacksize? pthreads and stacksize, winex3 deNiro Slackware 4 11-03-2003 03:00 PM
USB time out value (to increase or not increase) lynxgogo Linux - Hardware 0 07-24-2003 11:14 AM


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

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