Question about Attaching to Shared Memory Segs--shmat

Question about Attaching to Shared Memory Segs--shmat

Post by Michael G. Goldsm » Sat, 25 Jul 1992 02:15:24



I was wondering if the system imposed limit of the max
# of shared memory segments a process may attach at one
time, may be changed at all...

I am running SCO Open Desktop on a 486, and
am using the operations: shmget, shmctl, shmat etc...
from the shm library.

In shm.h, I noticed this stucture:

struct  shminfo {
        int     shmmax,         /* max shared memory segment size */
                shmmin,         /* min shared memory segment size */
                shmmni,         /* # of shared memory identifiers */
                shmseg,         /* max attached shared memory     */
                                /* segments per process           */
                shmall;         /* max total shared memory system */
                                /* wide (in clicks)               */

Quote:};

I would just love to be able to access shmseg and up the number
by a few....   Am I out of luck?
Who uses this structure? I can seem to find a ref to it anywhere...

-Mike
------------------------------------------------------------------------
Mike Goldsman              __o          o__      o__      o__      o__    
36004 Ga Tech Station    _ \<,_        _.>/ _   _.>/ _   _.>/ _   _.>/ _  
Atlanta, Georgia 30332  (_)/ (_)      (_) \(_) (_) \(_) (_) \(_) (_) \(_)
begin 600 mikeskey.pub



*;AEF;KPY+P4 $0_R
end

 
 
 

Question about Attaching to Shared Memory Segs--shmat

Post by Dominic Riche » Sat, 25 Jul 1992 06:00:07



! I was wondering if the system imposed limit of the max
! # of shared memory segments a process may attach at one
! time, may be changed at all...

yes, it is a kernel parameter.

! I am running SCO Open Desktop on a 486, and

then, login as root, cd /etc/conf/cf.d and run ./configure, pick category 9
and change the value of SHMSEG to however many you need (default is 6 per
process).  When you exit, ./link_unix

enjoy!

&+_$!

      MCRLab, Dept of Elec Eng, University of Ottawa, K1N 6N5, CANADA  
"You construct intricate rituals which allow you to touch the skin of other men"