1829160 Members
15338 Online
109986 Solutions
New Discussion

share mem

 
K.C. Chan
Trusted Contributor

share mem

All,
Could someone explains what share mem is? How does oracle uses it? what affect does it have on my system's free mem, if I have 2Gb of phys. memory and my shmmax is to 3Gb? Thanks.
Reputation of a thousand years can be determined by the conduct of an hour
2 REPLIES 2
Jeffrey S. Sims
Trusted Contributor

Re: share mem

As I understand it you can increase shmmax to whatever value you want. It just sets the maximum that can be used for a single contiguous lump of memory. Usually you would set it to your physical memory size minus kernel requirement and a bit reserved
for programs.

Hope this helps.
IT Response
Esteemed Contributor

Re: share mem

Hello,

What Jeffrey states is correct, you can set it to just about anything.

Shared memory segments are allocated by the shmget() function call, and typically this function is called directly by applications like Oracle.

ipcs -m will show shared memory usage.

Shared memory under Linux is no different from System V IPC shared memory found
in most other Unix systems. I would recommend reading
"Advanced UNIX Programming" to get to know how to use shared memory.
Alternative, read linux man pages for shmget, shmctl and shmat.