* Maximum size of a shared memory segement?
@ 1996-10-16 4:00 Ken Reed
1996-10-17 4:00 ` Curt Smith
1996-10-17 4:00 ` Patrick O'Rourke USG
0 siblings, 2 replies; 5+ messages in thread
From: Ken Reed @ 1996-10-16 4:00 UTC (permalink / raw)
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?
A pointer to where this information is documented would be a great
help.
Many thanks
Ken
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Maximum size of a shared memory segement?
1996-10-16 4:00 Maximum size of a shared memory segement? Ken Reed
@ 1996-10-17 4:00 ` Curt Smith
1996-10-18 4:00 ` Randy M. Hayman
1996-10-21 4:00 ` Ken Reed
1996-10-17 4:00 ` Patrick O'Rourke USG
1 sibling, 2 replies; 5+ messages in thread
From: Curt Smith @ 1996-10-17 4:00 UTC (permalink / raw)
Cc: kenr
Ken Reed (kenr@sed.stel.com) 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?
:
: A pointer to where this information is documented would be a great
: help.
sysconfig -q vm
displays the kernel tunables you may change in /etc/sysconfigtab
The following is what I've done for shared memory:
vm:
# Number of shared memory segments in the system
vm-mapentries=1000
# Max task virtual size
vm-maxvas = 1099511627776
# Allows task image to grow larger than physical RAM, as long
# as you have enough swap/virtual memory.
vm-nowait-memalloc=1
#
# Pre-allocating RAM for shared mem use, to avoid a bug in
# tasks attaching >> 512Mb.
# gh-chunks=NNN Where NNN is 4Mb chunks that is reserved
# for shared memory attaches.
#
# gh-fail-if-no-mem=0 If gh-chunks is too small, then use std UBC RAM
# which is the normal scenario...
Curt Smith
curts@compgen.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Maximum size of a shared memory segement?
1996-10-16 4:00 Maximum size of a shared memory segement? Ken Reed
1996-10-17 4:00 ` Curt Smith
@ 1996-10-17 4:00 ` Patrick O'Rourke USG
1 sibling, 0 replies; 5+ messages in thread
From: Patrick O'Rourke USG @ 1996-10-17 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Maximum size of a shared memory segement?
1996-10-17 4:00 ` Curt Smith
@ 1996-10-18 4:00 ` Randy M. Hayman
1996-10-21 4:00 ` Ken Reed
1 sibling, 0 replies; 5+ messages in thread
From: Randy M. Hayman @ 1996-10-18 4:00 UTC (permalink / raw)
Ken Reed (kenr@sed.stel.com) 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?
:
: A pointer to where this information is documented would be a great
: help.
from a portion of my /etc/sysconfigtab (on a v3.2d-1 system):
ipc:
shm-max = 0x7f800000
shm-seg = 64
shm-mni = 128
#shm-max = 8192 * 1024 == maximum shared memory segment size (maxval = 2GB)
# = 4194304 default
# = 16777216 960312 rmhayman ( 16MB)
# = 134217728 960702 rmhayman (128MB)
# = 0x7f800000 960709 rmhayman (2GB - 8MB)
# Digital Recommended Optimal Size
# Reference: Page 5-18, Digital UNIX v4.0 Release Notes
#
#
#shm-seg == maximum number of attached shared memory segments/
# process (max is 2^32 - 1, sizeof(int)?)
# = 32 default
# = 64 960312 rmhayman
#
#shm-mni == number of shared memory identifiers
# (max is 2^32 - 1, sizeof(int)?)
# = 100 default rounds to next higher
# power of 2
# = 128 960312 rmhayman
#
I can't say where I came up with the max for shm-seg and shm-mni, other
than looking at what `(dbx) whatis shminfo` returns.
--
Randy M. Hayman haymanr@icefog.alaska.edu
"Ethernet works in practice but not in theory" -- Bob Metcalfe
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Maximum size of a shared memory segement?
1996-10-17 4:00 ` Curt Smith
1996-10-18 4:00 ` Randy M. Hayman
@ 1996-10-21 4:00 ` Ken Reed
1 sibling, 0 replies; 5+ messages in thread
From: Ken Reed @ 1996-10-21 4:00 UTC (permalink / raw)
Many thanks for the info. Knowing were to look is a great help.
Ken
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1996-10-21 4:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-10-16 4:00 Maximum size of a shared memory segement? Ken Reed
1996-10-17 4:00 ` Curt Smith
1996-10-18 4:00 ` Randy M. Hayman
1996-10-21 4:00 ` Ken Reed
1996-10-17 4:00 ` Patrick O'Rourke USG
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox