Operating System - HP-UX
1752339 Members
5628 Online
108787 Solutions
New Discussion юеВ

Re: Memory allocation error

 
Ivan_8
Occasional Contributor

Memory allocation error

I was trying to allocate dynamically large amount of memory (more than 600 Mb) using standard C malloc function. The system has 1 Gb of physical memory, plenty of swap space, the stack size is set to maximum 390624 kb. But I can not get more than 670 Mb. I have heard about possible solution for fortran programs to compile with -K switch or to put arrays in common block, but it is obviously nonsense to do so for arrays that are dynamically allocated.

My system is HP-UX B.11.00 A 9000/785.

I would appreciate advice how to handle this problem.

Thanks, Ivan Oleinik.
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor

Re: Memory allocation error

You need to increase maxdsiz rather than maxssiz.

If it ain't broke, I can fix that.
Klaus Crusius
Trusted Contributor

Re: Memory allocation error


Interesting link:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1510,0x19f7a12d6d27d5118fef0090279cd0f9,00.html

(search for maxdsiz)
There is a live before death!