From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c1109a7110d1df53 X-Google-Attributes: gidfee84,public From: Patrick O'Rourke USG Subject: Re: Maximum size of a shared memory segement? Date: 1996/10/17 Message-ID: <326652E9.15FB@zk3.dec.com>#1/1 X-Deja-AN: 190084174 references: content-type: text/plain; charset=us-ascii organization: CTG mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 3.0b6Gold (X11; I; OSF1 V4.0 alpha) Ken Reed wrote: > > Anyone know what the maximum size of a shared memory segment is under > DEC UNIX and the maximum number of system-wide segements you can have? The maximum size is 2gb even though the size argument to shmget(2) is 'size_t' - 64 bits. The reason for the 2gb restriction is that the shm_segsz in the shmid_ds structure is only a signed integer. I believe this field may be changing to a 'size_t' in a newer standard. The maximum number of system wide shared memory segments possible is controlled by the shm-mni value. You may also want to take into consideration shm-seg which is the maximum number of segments that a process can attach at one time. Both of these values are within the ipc subsystem of the /etc/sysconfigtab file. > A pointer to where this information is documented would be a great > help. Look at the man page for the sysconfigtab(4) file, the sysconfig(8) command and also the "System Tuning and Performance Management" manual. Pat -- Patrick O'Rourke (603) 881-0124 orourke@zk3.dec.com Office: ZK3/3S05