Re: [GENERAL] 6.4.2 install on sparc solaris 2.6

From: Grigory Kljuchnikov <grn(at)ispras(dot)ru>
To: pgsql-general(at)hub(dot)org
Subject: Re: [GENERAL] 6.4.2 install on sparc solaris 2.6
Date: 1999-06-21 11:52:05
Message-ID: Pine.SOL.4.04.9906211532040.21940-100000@ispgate
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)ispras(dot)ru>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Steffen Zimmert 1999-06-21 18:48:44 Storing Java Objects
Previous Message Aaron Holtz 1999-06-21 11:31:28 Re: [GENERAL] 6.4.2 install on sparc solaris 2.6