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.
8 More Discussions You Might Find Interesting
1. Programming
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
2. UNIX and Linux Applications
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
3. Solaris
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
4. Solaris
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
5. Solaris
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
6. Solaris
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
7. UNIX for Dummies Questions & Answers
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
8. Solaris
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
LEARN ABOUT HPUX
pthread_default_stacksize_np
pthread_default_stacksize_np(3T) pthread_default_stacksize_np(3T)
NAME
pthread_default_stacksize_np() - change the default stacksize
SYNOPSIS
PARAMETERS
new_size The new default stack size.
old_size Pointer to where the old default stack size is returned.
DESCRIPTION
The function allows an application to change the default value for the stacksize attribute. This function must be called before any
threads have been created. The new default stack size is passed in the new_size parameter. If not NULL, the previous default stack size is
returned in old_size. If new_size is zero, this function can be used (at any time) to query the current default stack size.
On HP-UX, threads with default stack sizes are cached after they terminate. The next time a thread is created with a default stack size, a
cached thread (and its stack) are reused. This can result in significant performance improvements for
However, if the default stack size is not appropriate for an application, it cannot take advantage of this performance enhancement. By
using the function, the threads library will change the default stack size so that it matches the applications needs. This allows the
application to utilize the performance benefit of cached threads.
RETURN VALUE
Upon successful completion, returns zero. Otherwise, an error number is returned to indicate the error (the variable is not set).
ERRORS
If any of the following occur, the function returns the corresponding error number:
[EINVAL] The value specified by new_size is less than
[EPERM] The calling process has already created threads (this must be called before any threads are created).
WARNINGS
If the environment variable is set with a valid value for default stack size, then it takes precedence over the invocation of interface.
However, it returns the current default stack size in old_size.
The maximum default stack size value that may be set through the environment variable is restricted to 10 MB; any value greater than 10 MB
will be rounded down to 10 MB.
Care should be taken while setting the default stack size limit since this could impact the maximum number of threads that can be created
in a process.
AUTHOR
was developed by HP.
SEE ALSO
pthread_attr_getstacksize(3T), pthread_attr_setstacksize(3T).
STANDARDS CONFORMANCE
Pthread Library pthread_default_stacksize_np(3T)