Обсуждение: IPC problems with Linux 2.0.36

Поиск
Список
Период
Сортировка

IPC problems with Linux 2.0.36

От
Andre Antonio Parmeggiani
Дата:
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@howto.com.br