Re: FreeBSD 5.2.1, postgresql 7.4.5 and shared memory settings

From: Richard Poole <rp(at)guests(dot)deus(dot)net>
To: pgsql-general(at)postgresql(dot)org
Cc: Rick Apichairuk <rapichai(at)gmail(dot)com>
Subject: Re: FreeBSD 5.2.1, postgresql 7.4.5 and shared memory settings
Date: 2005-01-30 20:50:21
Message-ID: 20050130205021.GA14588@guests.deus.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

On Sun, Jan 30, 2005 at 03:21:25PM -0500, Rick Apichairuk wrote:

> I am trying to increase the number of max_connections to 200 and found
> out I couldn't even start postgresql. So I tried to increase
> max_connections gradually (currently at 50 from 40 default) and adjust
> shared memory settings along the way. Even at 50 max_connections, I
> still cannot get postgresql to start.
>
> The following is the error message I receive:
>
> pgsql FATAL: could not create shared memory segment: Invalid argument
> DETAIL: Failed system call was shmget(key=5432001, size=35323904,
> 03600).

> To reduce the request size (currently 35323904 bytes),

> kern.ipc.shmmax: 33554432

Looks like the request size is just higher than shmmax. The majority of
the request is for the shared buffers, so if you can't increase shmmax
any more you can reduce your shared buffers downwards from 4096 and this
will give you some room for more connections.

Richard

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2005-01-30 21:10:10 Re: FreeBSD 5.2.1, postgresql 7.4.5 and shared memory settings
Previous Message Rick Apichairuk 2005-01-30 20:37:42 Fwd: FreeBSD 5.2.1, postgresql 7.4.5 and shared memory settings

Browse pgsql-general by date

  From Date Subject
Next Message Marc G. Fournier 2005-01-30 20:59:38 Re: [GENERAL] MySQL worm attacks Windows servers
Previous Message Josh Berkus 2005-01-30 20:38:31 Re: [GENERAL] MySQL worm attacks Windows servers