Re: DB cache size strategies

From: Rick Gigger <rick(at)alpinenetworking(dot)com>
To: "Ed L(dot)" <pgsql(at)bluepolka(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Martijn van Oosterhout <kleptog(at)svana(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: DB cache size strategies
Date: 2004-02-11 21:40:06
Message-ID: 402AA136.8050506@alpinenetworking.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Has anyone discussed adding to postgres the ability to figure this out
on it's own. Couldn't it gather some statistics about the kind of
resources that it is actually using and adjust accordingly. You could
give it a max amount to use for the shared buffers but if it was so high
that it degraded performance postgres could just cut back on what it
actually used.

Is this even feasile? Correct me if I am wrong but it seems that most
other dbs seem to work this way.

It would make installing a nice tuned postgres a much more turn key
operation.

rick

Ed L. wrote:
> On Wednesday February 11 2004 9:57, Tom Lane wrote:
>
>>"Ed L." <pgsql(at)bluepolka(dot)net> writes:
>>
>>>Then what scenarios, if any, merit theory (2) over theory (1)?
>>
>>I'd only consider a large-cache setting on a machine that's dedicated to
>>running the database (where "dedicated" means "that's the only thing you
>>care about performance of", as in your first scenario). Even then I'd
>>test it against the other way. As Andrew Sullivan notes nearby, our
>>experience has been that the PostgreSQL buffer manager isn't all that
>>efficient about managing large caches. It's possible that Jan's current
>>work will change that situation in 7.5, but I'd still test first ...
>
>
> Great. Thx to all for feedback, very informative, interesting, and helpful
> in practice.
>
> Ed
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Costa 2004-02-11 21:58:21 Freelance postgresql related jobs
Previous Message Vivek Khera 2004-02-11 21:27:51 Re: Quad Xeon vs. Dual Itanium