Skip site navigation (1) Skip section navigation (2)

IPC problems with Linux 2.0.36

From: Andre Antonio Parmeggiani <aap(at)howto(dot)com(dot)br>
To: pgsql-ports(at)postgresql(dot)org
Subject: IPC problems with Linux 2.0.36
Date: 2000-02-29 15:18:06
Message-ID: (view raw or whole thread)
Lists: pgsql-ports
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
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 A. Parmeggiani

pgsql-ports by date

Next:From: Andre Antonio ParmeggianiDate: 2000-02-29 16:22:35
Subject: IPC problems with Linux 2.0.36
Previous:From: Elmar.HanekeDate: 2000-02-29 13:59:08
Subject: Re: [PORTS] initdb problem on NT with 7.0

Privacy Policy | About PostgreSQL
Copyright © 1996-2016 The PostgreSQL Global Development Group