$net->ninja; インターネット忍者

19May/09Off

Failed system call was shmget postgresql freebsd

No Gravatar

DETAIL:  Failed system call was shmget(key=xxx, size=xxx, xxx).

HINT:  This error usually means that PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter.  You can either reduce the request size or reconfigure the kernel with larger SHMMAX.  To reduce the request size (currently xxxxxx bytes), reduce PostgreSQL's shared_buffers parameter (currently xxxxx) and/or its max_connections parameter (currently xxx).

If the request size is already small, it's possible that it is less than your kernel's SHMMIN parameter, in which case raising the request size or reconfiguring SHMMIN is called for.

The PostgreSQL documentation contains more information about shared memory configuration.

solution: raise semaphores number

$ sysctl -w kern.ipc.shmall=32768
$ sysctl -w kern.ipc.shmmax=134217728
$ sysctl -w kern.ipc.semmap=256
more info
edit sysctl.conf:
kernel.shmall = xxxx
kernel.shmmax = xxxx
   

Twitter links powered by Tweet This v1.6.1, a WordPress plugin for Twitter.

$net->ninja; is Digg proof thanks to caching by WP Super Cache