Languages and Scripting

Re: Process Memory Allocation HP-UX 11.31

 
ahmadamin416
Occasional Contributor

Process Memory Allocation HP-UX 11i v3

Hi,
I have HP-UX 11i v3 running on ia64. One of my application is 32-bit and I want to increase the memory allocation of this process upto 2GB. I am contentiously receiving an error message of Out of Memory.
Can you please explain the procedure what kernel configuration( like maxdsize or maxdsize_64) i need to set and also do i need to set anything on the application binary ?

Thanks in advance.

 

My file chatr is as follows


32-bit ELF executable
         shared library dynamic path search:
             LD_LIBRARY_PATH    enabled  first
             SHLIB_PATH         enabled  second
             embedded path      enabled  third  /usr/lib/hpux32:/opt/langtools/lib/hpux32
         shared library list:
             libX11.so.1
             libm.so.1
             libc.so.1
         shared library binding:
             deferred
         global hash table disabled
         global hash table size 1103
         shared library mapped private disabled
         runtime checks disabled
         shared library segment merging disabled
         shared vtable support disabled
         explicit unloading disabled
         linkage table protection disabled
         segments:
             index type     address      flags size
                 7 text     04000000     z---c-    D (default)
                 8 data     40010000     ---m--    D (default)
         executable from stack: D (default)
         kernel assisted branch prediction enabled
         lazy swap allocation for dynamic segments disabled
         nulptr dereferences trap disabled
         address space model: default
         caliper dynamic instrumentation disabled

 

 

4 REPLIES 4
Ken Grabowski
Respected Contributor

Re: Process Memory Allocation HP-UX 11i v3

You can use "man maxdsiz" to get an explanation of the kernel parameter, or any other. the kcweb utility can be used to adjust them. Some values are dynamic and can be adjust on the fly, others will require a reboot.  There are several memory setting for memory data segment, text segment and shared memory.  You need to know which your system is attempting to use.  What does it's documentation tell you about kernel settings? 

 

Caution should be exercised when tuning system memory.  It is possible to negativity impact your systems performance by over allocating or under allocating memory settings.

 

 

Dennis Handly
Acclaimed Contributor

Re: Process Memory Allocation HP-UX 11.31

If you want 2 Gb, you need to make maxdsiz >= 2 Gb.  (And maxdsiz_64bit must also be larger.)

 

Since you have: address space model: default

You will need to relink with either: -N or -Wl,+as,mpas

 

>the kcweb utility can be used to adjust them.

 

kctune(1m) is probably easier.

ahmadamin416
Occasional Contributor

Re: Process Memory Allocation HP-UX 11.31

Hi,

 

  Thanks for the responses. Can you please write the exact command to relink as the -N is not available in HP-UX 11.31?

 

Thanks again.

 

 

In the man pages is is written it is not supported.

 This release of the chatr command no longer supports the following
      options:
 
      +  -n
      +  -q
      +  -M
      +  -N
      +  +getbuckets size
      +  +plabel_cache flag
      +  +q3p flag
      +  +q4p flag

Dennis Handly
Acclaimed Contributor

Re: Process Memory Allocation HP-UX 11.31

>Can you please write the exact command to relink as the -N is not available in HP-UX 11.31?

 

I told you, you MUST relink, you can't use chatr like you can on PA32.