1753830 Members
9050 Online
108806 Solutions
New Discussion юеВ

SHMGET Continuous Memory

 
SOLVED
Go to solution
Thao Huynh
Advisor

SHMGET Continuous Memory

HP-UX 11.0
RISC Server

The shmget was failed due to available memory not CONTINUOUS. Can you help me to determine the maxinum size of the continuous available memory? I can write program shmget call to get small size and keep to large size until hit the limit. Is there tools "glance" or vmstat, etc? How or what to look for?

Thanks,
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: SHMGET Continuous Memory

You are probably running a 32-bit application and all 32-bit applications share a common 4GB address space which will limit your pool of available shared memory unless you use Memory Windows even under 64-bit 11.x. Under 64-bit 11.x, using Memory Windows each group of related processes gets its own 4GB VAS.

An excellent tool for probing shared memory is shminfo and the c source is available for shmalloc. Find it by FTP'ing to hprc.external.hp.com. User: contrib; Password: 9unsupp8. Look in the sysadmin/programs/shminfo directory.
If it ain't broke, I can fix that.
Thao Huynh
Advisor

Re: SHMGET Continuous Memory

Got it. The shm_info tool is what I am looking for.
Thanks