Re: Memory taken by FSM_relations - Mailing list pgsql-performance

From Tom Lane
Subject Re: Memory taken by FSM_relations
Date
Msg-id 5221.1046117860@sss.pgh.pa.us
Whole thread Raw
In response to Memory taken by FSM_relations  (Josh Berkus <josh@agliodbs.com>)
List pgsql-performance
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

pgsql-performance by date:

Previous
From: Robert Treat
Date:
Subject: Re: slow query
Next
From: Tom Lane
Date:
Subject: Re: slow query