Re: Dead Space Map version 2

From: ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
To: "Jim C(dot) Nasby" <jim(at)nasby(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Dead Space Map version 2
Date: 2007-02-28 06:04:09
Message-ID: 20070228144642.6721.ITAGAKI.TAKAHIRO@oss.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches pgsql-performance

"Jim C. Nasby" <jim(at)nasby(dot)net> wrote:

> > I'd like to add some kind of logical flavors to max_fsm_pages
> > and max_dsm_pages.
>
> In the meantime, I'm not sure if it makes sense to tie the FSM size to
> the DSM size, since each FSM page requires 48x the storage of a DSM
> page. I think there's also a lot of cases where FSM size will not scale
> the same was DSM size will, such as when there's historical data in the
> database.

I see. We need separate variables for FSM and DSM.

Here is a new proposal for replacements of variables at Free Space Map
section in postgresql.conf. Are these changes acceptable? If ok, I'd
like to rewrite codes using them.

# - Space Management -

managed_relations = 1000 # min 100, ~120 bytes each
managed_freespaces = 2GB # 6 bytes of shared memory per 8KB
managed_deadspaces = 8GB # 4KB of shared memory per 32MB

managed_relations:
Replacement of max_fsm_relations. It is also used by DSM.

managed_freespaces:
Replacement of max_fsm_pages. The meaning is not changed,
but can be set in bytes.

managed_deadspaces:
A new parameter for DSM. It might be better to be scaled
with whole database size.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2007-02-28 06:08:25 Re: [HACKERS]
Previous Message Tom Lane 2007-02-28 06:02:33 Re: [HACKERS]

Browse pgsql-patches by date

  From Date Subject
Next Message Hiroshi Saito 2007-02-28 06:07:21 I want to omit the fopen message of Windows.
Previous Message Tom Lane 2007-02-28 06:02:33 Re: [HACKERS]

Browse pgsql-performance by date

  From Date Subject
Next Message ITAGAKI Takahiro 2007-02-28 07:10:09 Re: Dead Space Map version 2
Previous Message Tom Lane 2007-02-28 05:34:51 Re: Dead Space Map version 2