Re: [GENERAL] 6.4.2 install on sparc solaris 2.6 - Mailing list pgsql-general

From Grigory Kljuchnikov
Subject Re: [GENERAL] 6.4.2 install on sparc solaris 2.6
Date
Msg-id Pine.SOL.4.04.9906211532040.21940-100000@ispgate
Whole thread Raw
In response to Re: [GENERAL] 6.4.2 install on sparc solaris 2.6  (Herouth Maoz <herouth@oumail.openu.ac.il>)
List pgsql-general
On Mon, 21 Jun 1999, Herouth Maoz wrote:

> At 22:38 +0300 on 20/06/1999, Lauri Posti wrote:
>
>
> > I'm trying to install pg6.4.2 on Sparc Soalris 2.6 with no success.
> > (6.4.2 because python interface to LO doesn't work in 6.5).
> >
> > 6.4.2 compliles fine [with gcc version egcs-2.91.66 19990314 (egcs-1.1.2
> > release)]. initdb runs ok, but pstmaster -i :
> >
> > $postmaster -i
> > IpcMemoryCreate: shmget failed (Invalid argument) key=5432010, size=24588,
> > permission=700
> > IpcMemoryIdGet: shmget failed (Invalid argument) key=5432010, size=24588,
> > permission=0
> > IpcMemoryAttach: shmat failed (Invalid argument) id=-2
> > FATAL 1:  AttachSLockMemory: could not attach segment
>
> Perhaps your kernel is configured differently than ours, but we have
> compiled and are running 6.4.2 on Solaris 2.6 (Sparc) without a hitch. So,
> either there is not enough shared memory in your kernel, or it's something
> to do with the compiler - we used the commercial Sun c compiler.
>

Hi!

I resolved this problem. I have PostgreSQL 6.5.0 on sparc-sun-solaris2.6,
compiled by gcc 2.7.2.3. When I started postmaster -i, I had same error
messages.

You need to tune system parameter (shmsys) of kernel in /etc/system.

I add into /etc/system:

set shmsys:shminfo_shmmax=268435456
set shmsys:shminfo_shmmin=10
set shmsys:shminfo_shmmni=200
set shmsys:shminfo_shmseg=200
set semsys:seminfo_semmap=250
set semsys:seminfo_semmni=500
set semsys:seminfo_semmns=500
set semsys:seminfo_semmsl=500
set semsys:seminfo_semmnu=500
set semsys:seminfo_semume=100

then

# reboot -- -r

and

% sysdef

...

*
* IPC Shared Memory
*
 268435456      max shared memory segment size (SHMMAX)
    10  min shared memory segment size (SHMMIN)
   200  shared memory identifiers (SHMMNI)
   200  max attached shm segments per process (SHMSEG)
*

...

Now I start postmaster -i and it run ok.


Grigory Kljuchnikov,
Institute for System Programming Russian Academy of Sciences,
109004, Moscow, Russia, B.Kommunistitcheskay, 25,
phone(work):   +7-095-9125659
fax:           +7-095-9121524
e-mail:        <grn@ispras.ru>


pgsql-general by date:

Previous
From: Aaron Holtz
Date:
Subject: Re: [GENERAL] 6.4.2 install on sparc solaris 2.6
Next
From: Steffen Zimmert
Date:
Subject: Storing Java Objects