8 More Discussions You Might Find Interesting
1. Red Hat
Hi Guys,
I'm trying to install Oracle Database on to Oracle Linux 7.6 but when
the database install package checks the OS set-up, it keeps on failing
on the soft limits for the stack. It's default value is 8192 but I'm trying
to set it to 10240.
This is what I added to... (2 Replies)
Discussion started by: ASGR
2 Replies
2. Shell Programming and Scripting
hi,
I just wondering is there any way that I can record the stack size of shell script at runtime. (2 Replies)
Discussion started by: yc962frank
2 Replies
3. Linux
I have MultiThreaded Application in Linux.
I am Setting the stack size using pthread_attr_setstacksize.
The stack size i set is greter than PTHREAD_STACK_MIN i.e. 16384 bytes for my system.
i am setting the stack size to 17408 bytes, and my application crashes due to insufficient stack size.... (1 Reply)
Discussion started by: Kedar Sabnis
1 Replies
4. UNIX for Advanced & Expert Users
Hi All,
I have set max stack size as 4KB for my thread, but it always using very less.
So I like to know what is the maximum stack size is used by my thread.
I tried with gcc -fstack-usage command line option, but its not supported by mips.
Kindly suggest me the way to find the max stack... (6 Replies)
Discussion started by: rajamohan
6 Replies
5. Programming
I need to know what is the maximum stack size i.e. -Xss my java program is running with.
Is there a way to find that out from inside my java program code and outside of it.
What i am looking for is to read whatever the current set max limit -Xss (stack sie) is for a particular JVM(not... (3 Replies)
Discussion started by: mohtashims
3 Replies
6. Programming
Hi,
In Linux how to find out what will be the stack size allocated for a process?
Actually i have to fork n number of processess, and will call exec. I will be execing an executable which is already multithreaded and each thread size is defined. My doubt is how to know if the size of the... (2 Replies)
Discussion started by: rvan
2 Replies
7. UNIX for Advanced & Expert Users
hi all,
I need to find out the Stack usage of an App which is basically an mpeg4 decoder. We are plannin to port the codec to an RTOS. so is there any way to find out the max stack size while the codec is running?
saTs (1 Reply)
Discussion started by: satish_somu
1 Replies
8. Programming
Hi!!,
could someone tell me how to increase the stack size in HP-UX?
Thanx (7 Replies)
Discussion started by: jyotipg
7 Replies
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)