From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Anton Yuzhaninov <citrin(at)citrin(dot)ru>, pgsql-docs(at)postgresql(dot)org |
Subject: | Re: number of semaphores and semaphore sets |
Date: | 2011-09-06 15:08:51 |
Message-ID: | 201109061508.p86F8pE07237@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
Robert Haas wrote:
> On Mon, Mar 21, 2011 at 12:05 PM, Anton Yuzhaninov <citrin(at)citrin(dot)ru> 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.
I have applied the attached patch and backpatched it to 9.0 and 9.1.
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +
Attachment | Content-Type | Size |
---|---|---|
/rtmp/semaphore | text/x-diff | 2.3 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2011-09-06 15:19:45 | Re: Couple document fixes |
Previous Message | David Fetter | 2011-09-06 04:22:18 | Re: Couple document fixes |