stack space in sol10


 
Thread Tools Search this Thread
Operating Systems Solaris stack space in sol10
# 1  
Old 12-12-2007
stack space in sol10

we have a solaris 10 box (V440)

we are looking for a way to set the stack size for all processes on the system.

we know we can use ulimit -s

Code:
$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8192
coredump(blocks) unlimited
nofiles(descriptors) 256
memory(kbytes) unlimited

$ ulimit -s 16384

$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 16384
coredump(blocks) unlimited
nofiles(descriptors) 256
memory(kbytes) unlimited

this is fine but it only effects the current shell.

is there something we can put in to /etc/system that will effect the whole box??
# 2  
Old 12-12-2007
You can change the stack size by setting default_stksize to whatever value you need. Note, however, that it is the minimum size that a stack can have. In other words, no thread can be created with a stack size smaller than this value.

Increasing this value will result in increased kernel memory consumption, so do it only if really required.
# 3  
Old 12-12-2007
Quote:
Originally Posted by blowtorch
Increasing this value will result in increased kernel memory consumption, so do it only if really required.
yep, i figure that we show several GB of free RAM and many GB of free swap.
if we have 8MB more stack space per PID and about 100 PID's on the box then my math says we may be using about 1GB more RAM if we change the stack size.

we have a strange database program that has been giving a "cant fork" error for some weeks, when we put ulimit -s 16384 in the startup script it solved the problem.

but now when we do a lookup or search using the command line tools we also get a "cant fork", if we put a ulimit -s 16384 before we do the command line stuff we are OK again.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

No swap space to grow stack

Dear Solaris Experts, I had a Problem with swap consumption in our Production server. I found error message in /var/adm/message: Aug 1 10:55:40 production genunix: WARNING: Sorry, no swap space to grow stack for pid 29716 (oracle) What should I do for temporary solution? I need no... (4 Replies)
Discussion started by: edydsuranta
4 Replies

2. UNIX for Dummies Questions & Answers

Kernel Stack vs User Mode Stack

Hi, I am new to the linux kernel development area. I want to know what is the difference between kernel mode stack and user mode stack? Does each process has a user mode stack and a kernel mode stack?? Or Each process has a user mode stack and there is only one kernel mode stack that is shared by... (4 Replies)
Discussion started by: saurabhkoar
4 Replies

3. Solaris

Help with Sol10 boot error

I just ran the latest ( 9-27-11) solaris patch set on my sparc testbed ( ultra80 ). Brought down to single user mode and ran patches as I always have. When I rebooted it after completion it came up with the following error on boot. "Fast Access Data MMU Miss". I can boot to a cdrom in... (5 Replies)
Discussion started by: bow tie klr
5 Replies

4. Solaris

machine to learn Sol10

Hi What kind of Sun machine, you recommend to buy in order to learn Solaris 10 administration ? I need machine where I can train the following sol10 features : - zfs - solstice suite (RAID 0+1, RAID 5, RAID 1 + 0 ) - containers Please advice sth for reasonable price. thx for help. (8 Replies)
Discussion started by: presul
8 Replies

5. Solaris

Sol10 on primepower 850

I've got a console that seems to be hung. all other services (ip, etc) work perfectly. in fact, its still in production... we just don't have console access. so i there are two consoles on this guy.. scfc0 and scfc1. using iompadm from fujitsu, this is what i got: # ./iompadm -c FJSVscf3 info... (1 Reply)
Discussion started by: pupp
1 Replies

6. Solaris

[Sol10/VMWare] Unable to see new disk space.

The master copy was set to 5 gigs. As the instance is cloned, additional space is provided. I was given a new instance along with 15 gigs of additional space. The problem is I can't see the additional space, either as additional space on the primary disk or as a second disk. # format Searching... (8 Replies)
Discussion started by: BOFH
8 Replies

7. UNIX and Linux Applications

mysql on sol10 x86

i installed the x86 version (32-bit) of mysql community db. looks like the initial install of the pkg was good. however, i've got a few questions here. after the install, i run `/usr/local/mysql/scripts/mysql_install_db --user=mysql` to generate the db's and tables. it looks like a clean install... (0 Replies)
Discussion started by: pupp
0 Replies

8. Programming

what is stack winding and stack unwinding

helo can u tell me what do you mean by stack winding and stack unwinding Regards, Amit (2 Replies)
Discussion started by: amitpansuria
2 Replies
Login or Register to Ask a Question