GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Ulimit data
Operating System - HP-UX
1846071
Members
2751
Online
110253
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
06-28-2005 01:37 AM
06-28-2005 01:37 AM
Hi guys! According to what I've read in some posted messages if I want to change data in ulimit I have to increase maxdsize as well as maxdize_64 kernel parameters and then reboot the system. In my HP-UX 11i system maxdsize and maxdsize_64 were set to 1GB, I wanted to increase data from 256MB to 2GB, so I increased the two parameters mentioned above to 2GB. Once the system booted I checked data and the new value was 4292870144. This value is in kbytes. Why is this the new value? I mean, it was supposed to be 2GB instead of 4TB. I would like some help on this. Thanks.
Solved! Go to Solution.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2005 07:06 AM
06-28-2005 07:06 AM
Solution
What is the output of kmtune | grep maxd
Did you make the changes with SAM or manually edit the system file and build your own kernel? NOTE: SAM has an annoying habit of mixing hex and decimal values for different parameters. All parameters can be specified in hex, decimal or as a formula (the least desirable) but in all cases, the decimal equivalent is shown at the bottom right of the setting's page. The number 4292870144 is just 4Gb rather than 4Tb, but you really don't have to change it. maxdsiz and maxdsiz_64 are simple fences or barriers and have no other effect except to limit the maximum size of a 32 or 64 bit program.
So if you want your program to malloc 2Gb or RAM, be sure you compile the program with -Wl -N flags, and to go beyond 2Gb, use chatr on the program's executable file as in:
chatr +q3p enable myprog
which will allow up to about 2700 megs. Of course, the best choice is to compile as a 64bit program, something like this:
cc -Ae +DD64 -o mallocmax mallocmax.c
By setting maxdisz_64 to 50000000000 (50 Gb) then this program can ask for as much as 50Gb of RAM. Note that HP-UX is a virtual memory system so memory beyond the size of RAM is provided by swap space.
Bill Hassell, sysadmin
Did you make the changes with SAM or manually edit the system file and build your own kernel? NOTE: SAM has an annoying habit of mixing hex and decimal values for different parameters. All parameters can be specified in hex, decimal or as a formula (the least desirable) but in all cases, the decimal equivalent is shown at the bottom right of the setting's page. The number 4292870144 is just 4Gb rather than 4Tb, but you really don't have to change it. maxdsiz and maxdsiz_64 are simple fences or barriers and have no other effect except to limit the maximum size of a 32 or 64 bit program.
So if you want your program to malloc 2Gb or RAM, be sure you compile the program with -Wl -N flags, and to go beyond 2Gb, use chatr on the program's executable file as in:
chatr +q3p enable myprog
which will allow up to about 2700 megs. Of course, the best choice is to compile as a 64bit program, something like this:
cc -Ae +DD64 -o mallocmax mallocmax.c
By setting maxdisz_64 to 50000000000 (50 Gb) then this program can ask for as much as 50Gb of RAM. Note that HP-UX is a virtual memory system so memory beyond the size of RAM is provided by swap space.
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP