RE: oninit: Fatal error in shared memory creation
Posted in 1999
Ummmm... Don't you mean SHMVIRTSIZE, June, instead of SHMMAX????
================================
Paul A. Mosser, Open Systems DBA
Informix Certified DBSA
Wells Fargo & Co.
Tempe, Arizona
paul.mosser@wellsfargo.com
================================
> -----Original Message-----
> From: June Tong [mailto:june_t@hotmail.com]
> Sent: Thursday, January 07, 1999 8:22 PM
> To: informix-list@iiug.org
> Subject: Re: oninit: Fatal error in shared memory creation
>
>
> Kevin M. Carroll wrote:
>
> > The most recent entries in the online.log file report:
> >
> > shmget: [EEXIST][17]: key 52564801: shared memory already exists
> > mt_shm_init: can't create resident segment
> >
> > The first error however was:
> >
> > shmat: [EMFILE][24]: out of shared memory segments,
> check system SHMSEG
> > mt_shm_init: can't create virtual segment
> >
> > Other possibly pertinent info: I am creating a root space
> of about 1GB on an
> > 18GB disk. Any thoughts?
>
> Yup. Your kernel parameters are not set high enough for
> OnLine to allocate all
> the shared memory you requested. OnLine tried to allocate
> more shared memory
> segments than SHMSEG will allow. This may be because SHMSEG
> is too low, but
> actually I'd lean toward thinking your SHMMAX is too low, and
> consequently
> OnLine is trying to allocate several segments for all the
> virtual portion memory
> you've requested. You should increase SHMMAX so that the
> virtual segment will
> all fit in one segment, if possible, then you probably don't
> need to worry about
> SHMSEG.
>
> Oh, that was the first error. After that bombed, presumably
> OnLine didn't
> successfully manage to clean up all the memory it had
> allocated, and left some
> sitting behind. Subsequent attempts to start OnLine failed
> because the key it
> uses was already in use by the segments left behind.
> Identify those (I think
> someone else has already gone into this) and use ipcrm to remove them.
>
> June
> --
> june_t@hotmail.com
> Grounded in Palo Alto, living on M&M's (plain)
>
>