Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Shared Memory--how to add?
@ 1995-10-31  5:00 Matthew P Wiener
  1995-10-31  5:00 ` Dirk Grunwald
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew P Wiener @ 1995-10-31  5:00 UTC (permalink / raw)


What is "shared memory"?  More importantly, how do I put it in?

I am planning on installing Oracle7 for an Alpha running Dec Unix
version 3.2, and their manual refers me to "ipcs", "ipcrm", "shmget",
"shmctl" and "shmop".

In particular, it says to run ipcs to see how much I have:
------------------------------------------------------------------------
# ipcs

Message Queues:
T      ID     KEY      MODE        OWNER    GROUP
q       0 1090519431 --rw-------      root   system

Shared Memory:
T      ID     KEY      MODE        OWNER    GROUP
*** No shared memory segments are currently defined ***

Semaphores:
T      ID     KEY      MODE        OWNER    GROUP
s       0 1090519431 --ra-------      root   system
------------------------------------------------------------------------
Now, does this merely mean that no program has called shmget(2) yet,
and I can just install Oracle7 away and let it worry about it?  Or
does this mean that our default came with SHMMAX, SHMMIN, SHMMNI,
SHMSEG all set to zero, and I need to redo these parameters?  The
Oracle7 manual says there is a kernel parameter change somewhere in
/usr/sys/conf along with a README, but in addition to the lack of a
README, all I found there was a definition buried inside param.c:
------------------------------------------------------------------------
/* shared memory */
struct  shminfo shminfo = {     /* shared memory info structure */
                SHMMAX,
                SHMMIN,
                SHMMNI,
                SHMSEG
};
------------------------------------------------------------------------
So, what gives?
-- 
-Matthew P Wiener (weemba@sagi.wistar.upenn.edu)



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Shared Memory--how to add?
  1995-10-31  5:00 Shared Memory--how to add? Matthew P Wiener
@ 1995-10-31  5:00 ` Dirk Grunwald
  0 siblings, 0 replies; 2+ messages in thread
From: Dirk Grunwald @ 1995-10-31  5:00 UTC (permalink / raw)



The kernel defines a parameter concerning the maximum amount of shared
memory available and the maximum number of semaphores & message queues
that can be used.

You can modify these using the /etc/sysconfigtab file. For example, if
you say:

ipc:
        shm-max = 134217728

this means you can no more have 134MByte of shared memory allocated on
your system. I believe you need to reboot for this to task effect.


You can adjust any of the following parameters -- the values shown are
the "default" values for a rather generic Digital Unix 3.2A system. I
don't know what all of them do, but it's pretty easy to pick out some
of them.

msg-max = 8192
msg-mnb = 16384
msg-mni = 64
msg-tql = 40
shm-max = 4194304
shm-min = 1
shm-mni = 128
shm-seg = 32
sem-mni = 16
sem-msl = 25
sem-opm = 10
sem-ume = 10
sem-vmx = 32767
sem-aem = 16384
num-of-sems = 60
max-kernel-ports = 22487
port-hash-max-num = 1124350
port-reserved-max-num = 22487
set-max-num = 1029




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-10-31  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-10-31  5:00 Shared Memory--how to add? Matthew P Wiener
1995-10-31  5:00 ` Dirk Grunwald

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox