- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Huge data seg size and stack size
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
02-02-2004 01:24 PM
02-02-2004 01:24 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 02:06 PM
02-02-2004 02:06 PM
Re: Huge data seg size and stack size
Get a copy of the memory management and process management white papers in /usr/share/doc (10.20 and 11.0 systems). It will be virtually impossible to get a 2.7b stack. To which I ask: why would any sane program require more than a few megs for a stack?
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 03:22 AM
02-03-2004 03:22 AM
Re: Huge data seg size and stack size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 03:35 AM
02-03-2004 03:35 AM
Re: Huge data seg size and stack size
You need to adjust the following kernel parms
maxdsiz_64bit
maxtsiz_64bit
they will support the sizes you need. The ones w/o the _64bit will not.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 04:03 AM
02-03-2004 04:03 AM
Re: Huge data seg size and stack size
maxdsiz_64bit 4396972769279
maxssiz_64bit 1073741824
maxtsiz_64bit 107374182
Thos params are at their top, but i need even more :(RegardsJordi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 04:14 AM
02-03-2004 04:14 AM
SolutionThe absolute maximums are roughly
maxdsiz_64bit => 4 Terabytes
maxtsiz_64bit => 439 Gigabytes
I'd hope you don't need more than that ;~))
So, you're probably hitting a SAM problem.
Try the latest:
11.11 SAM cumulative - PHCO_25870
http://www2.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.search|&patchid=PHCO_25870&context=hpux:800:11:11
or
11.0 SAM cumulative - PHCO_25902
http://www2.itrc.hp.com/service/patch/patchDetail.do?BC=patch.breadcrumb.search|&patchid=PHCO_25902&context=hpux:800:11:00
whichever OS you're running.
Or set it/relink the kernel manually.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 05:37 AM
02-03-2004 05:37 AM
Re: Huge data seg size and stack size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 06:37 AM
02-03-2004 06:37 AM
Re: Huge data seg size and stack size
Try the following program to be sure:
# cat rlim.c
#include
#include
int
main(int argc, char *argv[] )
{
struct rlimit rl;
if ( getrlimit(RLIMIT_STACK, &rl) ) {
perror("rlimit stack get ");
} else {
printf("Stack max limit %ld Mb.\n",
rl.rlim_max / 1024 / 1024);
}
exit(0);
}
# cc +DD64 -o rlim64 rlim.c
# ./rlim64
Stack max limit 256 Mb.
# kctune -u -s maxssiz_64bit=0x40000000
WARNING: The automatic 'backup' configuration currently contains the
configuration that was in use before the last reboot of this
system.
==> Do you wish to update it to contain the current configuration
before making the requested change? no
NOTE: The backup will not be updated.
* The requested changes have been applied to the currently
running system.
Tunable Value Expression Changes
maxssiz_64bit (before) 268435456 Default Immed
(now) 0x40000000 0x40000000
# ./rlim64
Stack max limit 1024 Mb.
# kctune -u -s maxssiz_64bit=0x10000000
WARNING: The automatic 'backup' configuration currently contains the
configuration that was in use before the last reboot of this
system.
==> Do you wish to update it to contain the current configuration
before making the requested change? no
NOTE: The backup will not be updated.
* The requested changes have been applied to the currently
running system.
Tunable Value Expression Changes
maxssiz_64bit (before) 0x40000000 0x40000000 Immed
(now) 0x10000000 0x10000000
# ./rlim64
Stack max limit 256 Mb.
[maxssiz_64bit isn't dynamic on 11.11, I just wanted to show you that this should be correct.]
Regarding getting the limit up to 2.7Gb - you should be able to do this if you modify /usr/conf/master.d/core-hpux [change the line with *range maxssiz_64bit<=1024*1024*1024 to *range maxssiz_64bit<=3*1024*1024*1024 ] and /usr/conf/space.h.d/system_space.h [change 0x40000000 in the maxssiz_64bit tunedef to 0xC0000000]. NOTE: This is *not* an official endorsement of doing this from HP, no promise of support, etc. (Speaking just for myself here). After you do this you can use SAM/mk_kernel/whatnot. If you apply a patch that touches these files, you'll lose these changes -- so you're warned.
Getting to the root of the problem though -- hasn't the author of this program heard of dynamically allocating memory instead of using stack storage? I've heard of Fortran apps needing this much (due to Fortran assumptions) and Java goes to town sometimes... but if this is C code the program should really malloc the storage it copies these DB entries into. You'd then just be limited by data -- which should be doable.
# kmtune -q maxssiz_64bit
Parameter Current Dyn Planned Module Version
===============================================================================
maxssiz_64bit 0xb0000000 - 0XB0000000
# uname -a
HP-UX vm59mhk B.11.11 U 9000/889 237824391 unlimited-user license
# ./rlim64
Stack max limit 2816 Mb.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 09:38 AM
02-03-2004 09:38 AM
Re: Huge data seg size and stack size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2004 12:53 AM
02-04-2004 12:53 AM