- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: What dictates the maximum size of a process in...
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
09-09-2005 01:08 AM
09-09-2005 01:08 AM
chatr +q3p enable hpuxexe
Is'nt SZ/VSZ dictated by kernel parameters relating to stack, text and segment size limitations?
Are they correct in using the "chatr" approach?
Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2005 01:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2005 01:26 AM
09-09-2005 01:26 AM
Re: What dictates the maximum size of a process in HP-UX?
Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2005 01:47 AM
09-09-2005 01:47 AM
Re: What dictates the maximum size of a process in HP-UX?
the approach seems correct coz you touch shared memory when you touch 4th quadrant.
Read this doc attached for further information.
Hope this helps.
Regards,
Alessandro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2005 01:52 AM
09-09-2005 01:52 AM
Re: What dictates the maximum size of a process in HP-UX?
Of these, maxdsiz is the one that generally needs the most "help". I usually have to bump up the stack size a little for custom developed apps. You can use glance to pull up their process and see what each piece's size is, and can actually watch it fail, and from that you can see which segment is getting too large. That is, if the memory consumption grows slowly enough.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2005 02:00 AM
09-09-2005 02:00 AM
Re: What dictates the maximum size of a process in HP-UX?
BTW, this executable uses oracle (compiled against Oracle libs - ProC?) and our developers are claiming there is an SQL-02103 error associated.
Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2005 02:06 AM
09-09-2005 02:06 AM
Re: What dictates the maximum size of a process in HP-UX?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2005 02:18 AM
09-09-2005 02:18 AM
Re: What dictates the maximum size of a process in HP-UX?
So are you recommending reduction of maxssiz as a better alternative and we can forego the chatr approach?
Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2005 02:37 AM
09-09-2005 02:37 AM
Re: What dictates the maximum size of a process in HP-UX?
There are a few exceptions that need large stacks but those are usually FORTRAN (or linked with FORTRAN libraries).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2005 02:39 AM
09-09-2005 02:39 AM
Re: What dictates the maximum size of a process in HP-UX?
Then you'll have to bump one or the other (I'd do dsiz first) independently until it runs.
I don't think you need to enable q3 - the man page (below) indicates that this allows you to get your data segment out past 1.9G. I don't think that this is your problem.
-------------
+q3p flag Control the flag bit setting to indicate how 32-bit
processes use the third quadrant as data space.
The enable flag sets the flag bit to indicate that 32-
bit processes use the third quadrant as a private data
space. By setting the bit, the private data space
increases from 1.9GB to 2.85GB for 32-bit processes.
----------------
So, I believe it is your kernel parameters that are locking you out.
Don't forget to examine your ulimits.
"ulimit -a"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2005 02:42 AM
09-09-2005 02:42 AM
Re: What dictates the maximum size of a process in HP-UX?
Here are the basics:
Ordinary 32bit programs are limited to about 960 megs for local data or the value of maxdsiz, whichever is less.
Change the 32bit program to an EXEC_MAGIC program with the compiler options (I'm assuming a C program): cc -Ae -Wl -N -o myprog myprog.c and change maxdsiz to 1800 megs and now your program can reach about 1700+ megs.
+q3p option with chatr only works with 11.00 and 11.11 (latest patches) and will extend this limit to about 2700 megs (maxdsiz must be increased).
+q4p option will extend the limit to over 3500 megs (latest patches, does not work on 11.00) with some severe restrictions on shared memory.
So your 600Mb limit is coming from one of 4 limitations:
- maxdsiz is 600megs (you said maxdsiz is 1024megs) so that's not it,
- ulimit -d is set to 600000
- Not enough swap space for reservation
- maxdsiz_64 is 600megs - yeah, this is a zinger. If maxdsiz_64 is less than maxdsiz, then maxdsiz_64 limits the size of 32 and 64bit programs. Always make maxdsiz_64 several dozen Gb to avoid this hidden limitation.
To simplfiy everything, use the attached program code and compile/chatr it as shown in the comments. On a tiny A500 (rp2405) computer with 2Gb of RAM and 45Gb of swap space, I can get 900, 1700, 2700 and 3600 megs of local data (compiled/chatr'ed as documented) and 40Gb (!) of local data compiling as a 64bit process (maxdsiz_64=50Gb). You can get the same as long as you set maxdsiz accordingly and don't touch ulimit when you run the program.
32bit programs present quite complicated limitations when you start growing local and shared memory beyond a few hundred megs and it is the very reason that 64bit OS and programs exist.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2005 02:43 AM
09-09-2005 02:43 AM
Re: What dictates the maximum size of a process in HP-UX?
I have now a better understanding of the issue at hand.
I will hopefully now be better armed to respond to our applications folks.
Thanks y'all.. specially to A. Clay!
Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler