Operating System - HP-UX
1830899 Members
3096 Online
110017 Solutions
New Discussion

malloc() : not enough space

 
SOLVED
Go to solution
Guettache
Advisor

malloc() : not enough space

Hi,
I am running HP-UX 11.0, and a malloc() call (in one of my C programs) returns an ENOMEM (out of memory messages) status.

My C application is 32 bit running on 64 bit kernel.

DO I need to increase the maxdsiz only?

Thanks,

Narimane
4 REPLIES 4
kish_1
Valued Contributor

Re: malloc() : not enough space

please look into following url, it may help youhttp://h21007.www2.hp.com/hpux-devtools/CXX/hpux-devtools.0102/0043.html
share the power of the knowledge
T G Manikandan
Honored Contributor
Solution

Re: malloc() : not enough space

If you are running short of memory then you are right.

Just increase maxdsiz(this parameter is for the 32 bit executables).


Thanks
Guettache
Advisor

Re: malloc() : not enough space

Hi T G,

Thanks for your reply.

I have increased the maxdsiz

This has resolved my problem

Regards,

Narimane
Judy Traynor
Valued Contributor

Re: malloc() : not enough space

The other 2 parameters that "We" normally bump with Maxdsiz are
maxtsiz
maxssiz

(They are bumped for using "oinkers" like Apex, Rose, etc) for medium size models, etc.

For performance keep your dbcmaxpct less than 300 Mb on a memory rich (over 2Gb system RAM) and less than 120 mb if less RAM.

dbcmaxpct is a percentage of total ram.
Sail With the Wind