Operating System - HP-UX
1753774 Members
7095 Online
108799 Solutions
New Discussion юеВ

Re: How can I allocate memory more than 1GB in 32bit application

 
SOLVED
Go to solution
ьХИэЪиьД▒
New Member

How can I allocate memory more than 1GB in 32bit application

I have the problem that I can't use memory more than 1GB in 32bit application

I found some postings related my problem in this forum, so I increased 'maxdsiz' to 2GB using 'kctune' utility
My server's kernel tunable values are as follows:
...
max_acct_file_size 2560000 Default Immed
max_async_ports 4096 Default Immed
max_mem_window 0 Default Immed
max_thread_proc 1100 1100 Immed
maxdsiz 2147483648 2GB Immed
maxdsiz_64bit 4294967296 Default Immed
maxfiles 2048 Default
maxfiles_lim 4096 Default Immed
maxrsessiz 8388608 Default
maxrsessiz_64bit 8388608 Default
maxssiz 8388608 Default Immed
maxssiz_64bit 268435456 Default Immed
maxtsiz 100663296 Default Immed
maxtsiz_64bit 1073741824 Default Immed
...

But, I can't still allocate memory more than 1GB.
What do I have to do modify which kernel configurations or any other values to solve my problem.
3 REPLIES 3
Dennis Handly
Acclaimed Contributor
Solution

Re: How can I allocate memory more than 1GB in 32bit application

In one request or total of > 1 Gb?

You need to link with -N.
ьХИэЪиьД▒
New Member

Re: How can I allocate memory more than 1GB in 32bit application

I means total size of allocated memory.
Bill Hassell
Honored Contributor

Re: How can I allocate memory more than 1GB in 32bit application

Without special compile time options, you are limited to a single 1 GB quadrant for your data (heap) space. As Dennis said, you can compile your application with -N to allow most of the adjacent partition and therefore allocate as much as 1.8 GB of data space. I am assuming you are using some version of HP-UX version 11.

You also have choices for quadrant 3 and 4 giving your application access to as much as 3.8 GB of data space. I have attached a sample program with instructions for configuring it 5 different ways.


Bill Hassell, sysadmin