pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Memory taken by FSM_relations
Date: Mon, 24 Feb 2003 15:17:40 -0500
Message-ID: <5221.1046117860@sss.pgh.pa.us> (raw)
In-Reply-To: <200302241028.00309.josh@agliodbs.com>
References: <200302241028.00309.josh@agliodbs.com>

Josh Berkus <josh@agliodbs.com> writes:
> I'm not clear on where the memory needed by max_fsm_pages comes from.
> Is it taken out of the shared_buffers, or in addition to them?

In addition to.  Basically max_fsm_pages and max_fsm_relations are used
to ratchet up the postmaster's initial shared memory request to the kernel.

> Further, Joe Conway gave me a guesstimate of 6k per max_fsm_pages
> which seems rather high ...

Quite ;-).  The correct figure is six bytes per fsm_page slot, and
I think about forty bytes per fsm_relation slot (recent versions of
postgresql.conf mention the multipliers, although for some reason
the Admin Guide does not).

			regards, tom lane



view thread (7+ messages)

Message-ID: <5221.1046117860@sss.pgh.pa.us>
Permalink:  ../5221.1046117860@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5221.1046117860@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, josh@agliodbs.com
  Subject: Re: Memory taken by FSM_relations
  In-Reply-To: <5221.1046117860@sss.pgh.pa.us>
  References: <200302241028.00309.josh@agliodbs.com> <5221.1046117860@sss.pgh.pa.us>

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

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