Re: initializing shared memory
Posted in 1996
Malcolm Weallans wrote:
>
> > Gene Terry Sanford <tsanford@csti-md.com> wrote:
> >
> > :We are runnning informix 4.1 on SCO OpenSever 5.02.
> > :When we run tbinit to initialize shared memory we get
> > :the following error:
> >
> > : tbinit: shmat[EINVAL][22]: shared memory base address
> > : illegal using 0x80480000, needs 0x80000000
> > : tbinit: fatal error in shared memory creation.
> >
> > :Our tbconfig file has SHMBASE = 0x80400000
> > :Anyone have any idea what the problem is. It sounds like the
> > :shared memory base address for SCO needs to be changed.
> Have you tried modifying SHMBASE to Ox80000000?
>
> I have installed a number of SCO UNIX systems at different levels and
> found that to be necessary. But don't ask me why?
>
> Malcolm Weallans
> Online Database Consultancy
> Phone 01628-72154
> Fax 01628-37463
> CIX - onlinedbc
Am I the last one ?
Years ago we had exactly the same problem. Now I looked at the
default configuration file and saw that the default value is
really 0x80400000. But I have another version running with the
SHMBASE value of 0x0.
Well, the solution to the problems years ago was "never trust
the error messages of Informix". I think you have a mismatch
in your kernel configuration. Make sure that your kernel
parameter SHMMAX is at least the value of your Resident Shared
Memory Segment. If SHMMAX is lower than the size of the segment
that Informix needs, than Informix will allocate a new segment,
but the chaining of segments does not work with SCO and would
result in the mentioned error message.
Try this, if the setting of SHMBASE to 0x80000000 would result
in an error message like
: tbinit: shmat[EINVAL][22]: shared memory base address
> > : illegal using 0x80000000, needs 0x80e10000
> > : tbinit: fatal error in shared memory creation.
> >
Whenever I tried it with a new address, Informix suggested a new
one, until I relinked the kernel.
Good luck
Stefan
stefan@www.weideneder.de