Re: Dynamically sizing FSM?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: "Bruce Momjian" <bruce(at)momjian(dot)us>, josh(at)agliodbs(dot)com, "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Dynamically sizing FSM?
Date: 2007-01-09 21:38:47
Message-ID: 10699.1168378727@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> The real problem is that we don't have, and don't particularly want, a memory
> manager for the shared memory.

No, the real problem is that you can't re-size a SysV shared memory
segment on the fly --- there's no portable API for that, anyway.
Therefore there's not much point in having dynamic memory management
within the segment: you pretty much have to predetermine the total size
of each structure you want to have in shared memory, so that you know
what size segment to create in the first place.

I'm of the opinion that the solution to FSM being fixed-size is to keep
it somewhere else, ie, on disk (possibly with some sort of cache in
shared memory for currently-used entries).

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-01-09 21:50:58 Re: [HACKERS] Patch to log usage of temporary files
Previous Message Bruce Momjian 2007-01-09 21:38:17 Re: 8.3 pending patch queue