IPC problems with Linux 2.0.36

From: Andre Antonio Parmeggiani <aap(at)howto(dot)com(dot)br>
To: pgsql-admin(at)postgresql(dot)org
Subject: IPC problems with Linux 2.0.36
Date: 2000-02-29 21:48:18
Message-ID: Pine.LNX.3.96.1000229184438.5242B-100000@ns1.howto.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


Hi All,

Im trying to access the archives without success :(
Sorry if a common question...

Well, Im trying to run postgres 6.5.3 or 7Beta1 on my 2.0.36 linux.

server.log returns :
IpcMemoryCreate: shmget failed (Invalid argument) key=5432001,
size=1063936, per
mission=600
FATAL 1: ShmemCreate: cannot create region

In the FAQ_Linux I found :
3.5) Why do I get an error like:
IpcMemoryCreate: memKey=155356396 , size=760632 ,
permission=384IpcMemoryCreate: shmget(..., create, ...)
failed: Invalid argument

You haven't build IPC support into your Linux kernel. You
will have to rebuild the kernel and switch on this option.

BUT, my kernel was built with IPC support !!
This silly program works fine :

#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
void main(void)
{
int shmid, result;
shmid = shmget(IPC_PRIVATE, 1024 * 1024, (SHM_R | SHM_W));
printf("shmid = %d\n",shmid);
result = shmctl(shmid, IPC_RMID, 0);
printf("result = %d\n",result);
}

shmid = 2305
result = 0

Whats wrong ?
Any suggestions ??
Thanks in Advance,

Andre

--
Andre A. Parmeggiani
aap(at)howto(dot)com(dot)br

Browse pgsql-admin by date

  From Date Subject
Next Message Fabio Benevenuti 2000-03-01 14:53:16 Identifier limits
Previous Message bangh 2000-02-29 18:07:45 RE:Perl Script and Postgres DB running via Apache Web