1829438 Members
1154 Online
109992 Solutions
New Discussion

Shared Memory on 11.00

 
Anirban Sengupta
Occasional Contributor

Shared Memory on 11.00

Hi,

Can a 32 bit application and 64 bit application use shared memory for inter-process communication?
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: Shared Memory on 11.00

Hi:

Yes. See document #UNX1100033 which states, in part:

HP-UX 11.0 allows 32-bit and 64-bit applications to communicate with each other using standard data sharing and interprocess communication (IPC) mechanisms.

Data shared by 64-bit and 32-bit application should be the same size and have the same alignment in both applications.

From document #UNX1100042:

The maximum shared memory segment size on 64-bit HP-UX 11.0 is:
-> 1 GB for 32-bit applications
-> 4 TB for 64-bit applications

...JRF...
Madhu Sudhan_1
Respected Contributor

Re: Shared Memory on 11.00

Hi !
From docs.hp.com
The shared memory segment for 32-bit applications is separate from the shared memory segment for 64-bit applications. Thus, the 32-bit application has simultaneous access to 1.75GB (2.75GB with SHMEM_MAGIC) and the 64-bit application has access to 4TB shared memory in one contiguous segment. The 64-bit application can choose to share memory segments with 32-bit applications if desired. In this case, the limits will be based on what the 32-bit application can access.

......Madhu
Think Positive
Madhu Sudhan_1
Respected Contributor

Re: Shared Memory on 11.00

Hi ,
From docs.hp.com:

The shared memory segment for 32-bit applications is separate from the shared memory segment for 64-bit applications. Thus, the 32-bit application has simultaneous access to 1.75GB (2.75GB with SHMEM_MAGIC) and the 64-bit application has access to 4TB shared memory in one contiguous segment. The 64-bit application can choose to share memory segments with 32-bit applications if desired. In this case, the limits will be based on what the 32-bit application can access.

......Madhu
Think Positive
Madhu Sudhan_1
Respected Contributor

Re: Shared Memory on 11.00

Sorry for extra posting, the submit button is acting wierd.

......Madhu
Think Positive