Re: DB Tuning Notes for comment...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
Cc: Robert Treat <rtreat(at)webmd(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: DB Tuning Notes for comment...
Date: 2002-12-10 01:39:28
Message-ID: 21702.1039484368@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Philip Warner <pjw(at)rhyme(dot)com(dot)au> writes:
> Secondly, an empty database contains 98 tables, so the default setting of
> max_fsm_pages to 100 is way too low.

Only 37 of them need FSM entries, but still a good point; we should
probably bump it up to 1000 to be more realistic.

> oddly (bug? edge behaviour?) doing two vacuums in a row results in the free
> space being used.

I'm on my way out the door, so no time to think about what's actually
happening in the current code, but ideally I would think that when the
FSM doesn't have enough space, it should prefer to remember info about
rels with heavy update activity (which might be approximated by "rels
with lots of free space", but isn't really the same thing). A VACUUM
done just after startup does not have any historical info to base this
decision on. So it's not unreasonable for the system to make better
choices after it's been running awhile than when it's freshly booted.
I'm not sure that this is actually what's happening today, just pointing
out that I don't consider it a bug per se if the code behaves that way.
(The existing code does have some LRU effects, IIRC, but not sure
if they account for what you see.)

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Philip Warner 2002-12-10 01:47:03 Re: DB Tuning Notes for comment...
Previous Message Bruce Momjian 2002-12-10 01:36:49 Re: psql's \d commands --- end of the line for 1-character