public inbox for [email protected]  
help / color / mirror / Atom feed
From: Robert Haas <[email protected]>
To: Anton Yuzhaninov <[email protected]>
Cc: [email protected]
Subject: Re: number of semaphores and semaphore sets
Date: Tue, 5 Apr 2011 12:57:55 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

On Mon, Mar 21, 2011 at 12:05 PM, Anton Yuzhaninov <[email protected]> wrote:
> This page:
> http://www.postgresql.org/docs/9.0/interactive/kernel-resources.html
>
> has formula:
> ceil((max_connections + autovacuum_max_workers) / 16)
>
> for number of semaphore sets (identifiers).
>
> It seems to be wrong (outdated).
>
> Correct formula seems to be
>
> ceil((max_connections + autovacuum_max_workers + 4) / 16)
>
> Semaphore sets created in src/backend/storage/lmgr/proc.c:
> 1. MaxConnections
> 2. autovacuum_max_workers + 1
> 3. NUM_AUXILIARY_PROCS (currently 3)

Yeah, I think you're right.  It appears that nothing material has
changed here since 8.3, so I'm inclined to back-patch this doc fix
back that far.

Barring objections, I'll go change this.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



view thread (3+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: number of semaphores and semaphore sets
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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