- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ulimit problem with data and stack sizes.
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
Forums
Discussions
Discussions
Discussions
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
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
04-19-2005 07:59 AM
04-19-2005 07:59 AM
I would like to set the data to unlimited but it does not let me do this. I tried using the builtin ulimit command and specifying it from the full path:
# id
uid=0(root) gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7(lp),20(users),77(opcgrp),200(sapsys),202(oper),1001(sysadm)
# ulimit -d unlimited
sh: ulimit: The specified value exceeds the user's allowable limit.
# /usr/bin/ulimit -d unlimited
/usr/bin/ulimit[7]: ulimit: The specified value exceeds the user's allowable limit.
# /usr/bin/ulimit -aH
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 131072
memory(kbytes) unlimited
coredump(blocks) unlimited
nofiles(descriptors) 2048
the number 1048576, corresponding to data is 1024*1024, i.e., it is the 1GB point. I know that I have 8 GB of memory on this system but still it does not let me increment this value even by a mere "1" as follows
# /usr/bin/ulimit -d 1048577
/usr/bin/ulimit[7]: ulimit: The specified value exceeds the user's allowable limit.
# ulimit -d 1048577
sh: ulimit: The specified value exceeds the user's allowable limit.
# kmtune | grep -e maxdsiz_64bit -e maxssiz_64bit
maxdsiz_64bit 17179869184 - 17179869184
maxssiz_64bit 0x40000000 - 0X40000000
I am lost here. Could someone please enlighten me ? Is there any reason why I can not set this to unlimited ? Or why can't I increase it to my available memory size, or some level close to it as I understand, there needs to be some memory reserved for kernel and such ? Also, I need to ask same question for the stack size as well ? Are there any limitations for these values regarding various kernel parameters ?
UNIX because I majored in cryptology...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2005 08:12 AM
04-19-2005 08:12 AM
Solution64-bit processes are limited by the _64bit tunables.
Remember these values limit per process memory use. They consume no limit themselves but prevent any one process from grabbing all the avilable resourses. As a general rule, the stack maxssiz, maxssiz can be fairly small (64MB for 32-bit, 128MB for 64-bit) because almost anything that needs stacks larger than that are almost certainly poorly written code (the exception might be some FORTRAN code). Similarly, maxtsiz doesn't need to be that big. How many programs do you know that have 1GB of executable code? The big one is maxdsiz (and _64bit). This is the area that can grow when dynamic memory is allocated and here the sky is the limit --- within reason. For example, on development machines, you might have a rogue program consuming all the memory and no one else can do anything. With a reasonable maxdsiz_64bit, this program might grow until it allocated 4GB and then die and everyone else is still able to work. That's the function of these values -- to limit the hogs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2005 08:16 AM
04-19-2005 08:16 AM
Re: ulimit problem with data and stack sizes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2005 11:31 AM
10-11-2005 11:31 AM
Re: ulimit problem with data and stack sizes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2005 01:59 PM
10-11-2005 01:59 PM
Re: ulimit problem with data and stack sizes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2005 01:37 AM
10-12-2005 01:37 AM
Re: ulimit problem with data and stack sizes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2005 03:06 AM
10-12-2005 03:06 AM
Re: ulimit problem with data and stack sizes.
UNIX because I majored in cryptology...