- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to increase the ulimit -s (stack value) 8192 t...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2008 02:44 AM
тАО11-20-2008 02:44 AM
[root] uname -a
HP-UX test01 B.11.11 U 9000/800 1549607670 unlimited-user license
[root] model
9000/800/rp8420
[root] echo $SHELL
/sbin/sh
[root] ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 60
[root] ulimit -Sa
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 60
[root] ulimit -Ha
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) unlimited
nofiles(descriptors) 2200
[root] more resource.h |grep -i rlim_infinity
# define RLIM_INFINITY RLIM64_INFINITY
# define K_RLIM_INFINITY RLIM_INFINITY
# define RLIM_INFINITY (uint64_t) 0x7fffffffffffffffL
# define RLIM_INFINITY (uint64_t) 0x7fffffffffffffffLL
# define RLIM_INFINITY (uint32_t) 0x7fffffff
Whenever I try to set it using the command [root]ulimit -s
it says:e.g.
[root] ulimit -s 81920
sh: ulimit: The specified value exceeds the user's allowable limit.
On the other hand If i try to set it lower value ulimit -s
it works fine.please find the attachment for kernel parameter information.
Could You please let me know how I can set it? Which kernel parameters need to be changed to accomplish it or it is not possible in my case?
Thanks much in advanced.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2008 02:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2008 02:52 AM
тАО11-20-2008 02:52 AM
Re: how to increase the ulimit -s (stack value) 8192 to maximum on hp ux 11.11
kmtune |grep maxfiles
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2008 04:48 AM
тАО11-20-2008 04:48 AM
Re: how to increase the ulimit -s (stack value) 8192 to maximum on hp ux 11.11
As Aneesh mentioned those are maxssiz*.
How big do you plan to make it?
Note: making it very large will reduce maxdsiz.
81 Mb is probably fine.
>Johnson: To set the latter larger, you may have to use kctune/kmtune to set maxfiles_lim
There is no direct connection between maxssiz and maxfiles_lim.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2008 05:35 AM
тАО11-20-2008 05:35 AM
Re: how to increase the ulimit -s (stack value) 8192 to maximum on hp ux 11.11
Thank you in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2008 10:11 AM
тАО11-20-2008 10:11 AM
Re: how to increase the ulimit -s (stack value) 8192 to maximum on hp ux 11.11
Yes. But if you were on 11.23 where maxssiz is a dynamic tunable, you could just change it.
>Before changing these value do I need to stop database/applications or online I can change it.
You have to regen a kernel, so everything must be stopped.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2014 09:47 PM
тАО10-28-2014 09:47 PM
Re: how to increase the ulimit -s (stack value) 8192 to maximum on hp ux 11.11
Hi Aneesh,
I tried to increase the stack limit. you mentioned to change the stack value by tunning the below parameter
maxssiz
maxssiz_64bit
How to change this value? Could you give me the commands to change it?
finuat01:/home/pwxuser#ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 2048
finuat01:/home/pwxuser#ulimit -sa
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 2048
finuat01:/home/pwxuser#ulimit -s 524288
sh: ulimit: The specified value exceeds the user's allowable limit.
finuat01:/home/pwxuser#ulimit -s 262144
sh: ulimit: The specified value exceeds the user's allowable limit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2014 02:04 AM
тАО10-29-2014 02:04 AM
Re: how to increase the ulimit -s (stack value) 8192 to maximum on HP-UX 11.11
>you mentioned to change the stack value by tuning the below parameter
You need to use kmtune(1m) to change those kernel parms.
Your current value, 131 MB should be plenty big enough, unless you have a poorly written Fortran program.