Re: Is There Any Way .... - Mailing list pgsql-performance

From Jim C. Nasby
Subject Re: Is There Any Way ....
Date
Msg-id 20051005000104.GO40138@pervasive.com
Whole thread Raw
In response to Re: Is There Any Way ....  (Ron Peacetree <rjpeace@earthlink.net>)
List pgsql-performance
On Tue, Oct 04, 2005 at 07:33:47PM -0400, Ron Peacetree wrote:
> pg is _very_ stupid about caching.  Almost all of the caching is left
> to the OS, and it's that way by design (as post after post by TL has
> pointed out).
>
> That means pg has almost no ability to take application domain
> specific knowledge into account when deciding what to cache.
> There's plenty of papers on caching out there that show that
> context dependent knowledge leads to more effective caching
> algorithms than context independent ones are capable of.
>
> (Which means said design choice is a Mistake, but unfortunately
> one with too much inertia behind it currentyl to change easily.)
>
> Under these circumstances, it is quite possible that an expert class
> human could optimize memory usage better than the OS + pg.

Do you have any examples where this has actually happened? Especially
with 8.x, which isn't all that 'stupid' about how it handles buffers?
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

pgsql-performance by date:

Previous
From: Ron Peacetree
Date:
Subject: Re: Is There Any Way ....
Next
From: "Douglas J. Trainor"
Date:
Subject: Re: Is There Any Way ....