Re: Can't start Pgsql 7.1 on FreeBSD 4.2

From: Rick Robino <rrobino(at)wavedivision(dot)com>
To: Kurt Seel <kseel(at)utcorp(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Can't start Pgsql 7.1 on FreeBSD 4.2
Date: 2001-04-27 03:51:55
Message-ID: 3AE8ECDB.5B274E24@wavedivision.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


Kurt Seel wrote:

> Postmaster spits out this :
> IpcMemoryCreate: shmget(key=5432001, size=1236992, 03600) failed: Cannot
> allocate memory
> When I try to start it. I compiled and installed from the ports
> collection.
>
> I compiled these into my kernel :
> options SYSVSHM #SYSV-style shared memory
> options SYSVMSG #SYSV-style message queues
> options SYSVSEM #SYSV-style semaphores
>
> Any ideas?

This is covered in more depth in the Admin documentation, chapter 3.5. An
online version can be found at:

http://postgresql.readysetnet.com/devel-corner/docs/admin/kernel-resources.html

Specifically, it says:

"FreeBSD, OpenBSD

The options SYSVSHM and SYSVSEM need to be enabled when the kernel is
compiled. (They are by default.) The maximum size of shared memory is
determined
by the option SHMMAXPGS (in pages). The following shows an example of how to
set the various parameters:

options SYSVSHM
options SHMMAXPGS=4096
options SHMSEG=256

options SYSVSEM
options SEMMNI=256
options SEMMNS=512
options SEMMNU=256
options SEMMAP=256
"

--Rick

Attachment Content-Type Size
rrobino.vcf text/x-vcard 303 bytes

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Reiner Dassing 2001-04-27 07:56:30 Re: Restoring a pg_dump fails with
Previous Message Tom Lane 2001-04-26 22:26:25 Re: Can't start Pgsql 7.1 on FreeBSD 4.2