pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Can't start Pgsql 7.1 on FreeBSD 4.2
3+ messages / 3 participants
[nested] [flat]

* Can't start Pgsql 7.1 on FreeBSD 4.2
@ 2001-04-26 19:07  Kurt Seel <kseel@utcorp.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Kurt Seel @ 2001-04-26 19:07 UTC (permalink / raw)
  To: pgsql-admin



 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?

--
 In theory, there is no difference between theory
and practice. In practice, however, there is.
 - Albert Einstein








^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Can't start Pgsql 7.1 on FreeBSD 4.2
@ 2001-04-26 22:26  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Kurt Seel <kseel@utcorp.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Tom Lane @ 2001-04-26 22:26 UTC (permalink / raw)
  To: Kurt Seel <kseel@utcorp.com>; +Cc: pgsql-admin

Kurt Seel <kseel@utcorp.com> writes:
>  Postmaster spits out this :
> IpcMemoryCreate: shmget(key=5432001, size=1236992, 03600) failed: Cannot
> allocate memory

If you try, say, -N 8 -B 16 does it start?

I'm betting 1236992 bytes is larger than your kernel's limit on shared
memory segment size.  You can certainly raise that limit, but I don't
know just how that's done on FreeBSD.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Can't start Pgsql 7.1 on FreeBSD 4.2
@ 2001-04-27 03:51  Rick Robino <rrobino@wavedivision.com>
  parent: Kurt Seel <kseel@utcorp.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Rick Robino @ 2001-04-27 03:51 UTC (permalink / raw)
  To: Kurt Seel <kseel@utcorp.com>; +Cc: 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

Attachments:

rrobino.vcf (text/x-vcard, 302B) download begin:vcard n:Robino;Rick tel;cell:(503) 891-9283 x-mozilla-html:FALSE url:http://www.wavedivision.com/~rrobino/ org:Wave Division Consulting adr:;;18140F NW Cornell Rd.;Beaverton;OR;97006;US version:2.1 email;internet:rrobino@WaveDivision.com title:Internet Systems Architect fn:Rick Robino end:vcard
^ permalink raw reply [nested|flat] 3+ messages in thread


end of thread, other threads:[~2001-04-27 03:51 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-04-26 19:07 Can't start Pgsql 7.1 on FreeBSD 4.2 Kurt Seel <kseel@utcorp.com>
2001-04-26 22:26 ` Tom Lane <tgl@sss.pgh.pa.us>
2001-04-27 03:51 ` Rick Robino <rrobino@wavedivision.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox