曾经为确定AIX中共享内存大小限制的问题,google了好多资料,今天突然发现在AIX5.3的shmget文档中有详细的说明,在此记录一下。
man shmget
The shmget subroutine returns the shared memory identifier associated with the specified Key parameter.
The following limits apply to shared memory:
* Maximum shared-memory segment size is:
* 256M bytes before AIX 4.3.1
* 2G bytes for AIX 4.3.1 through AIX 5.1
* 64G bytes for 64-bit applications for AIX 5.1 and later
* Minimum shared-memory segment size is 1 byte.
* Maximum number of shared memory IDs is 4096 for operating system releases before AIX 4.3.2, 131072 for releases AIX
4.3.2 through AIX 5.2, and 1048576 for release AIX 5.3 and later.[@more@]