Re: [Patch] Optimize dropping of relation buffers using dlist
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: "k.jamison@fujitsu.com" <k.jamison@fujitsu.com>
Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2020-02-05T15:12:52Z
Lists: pgsql-hackers
On Tue, Feb 4, 2020 at 4:57 AM k.jamison@fujitsu.com <k.jamison@fujitsu.com> wrote: > Kindly check the attached V6 patch. > Any thoughts on this? Unfortunately, I don't have time for detailed review of this. I am suspicious that there are substantial performance regressions that you just haven't found yet. I would not take the position that this is a completely hopeless approach, or anything like that, but neither would I conclude that the tests shown so far are anywhere near enough to be confident that there are no problems. Also, systems with very large shared_buffers settings are becoming more common, and probably will continue to become more common, so I don't think we can dismiss that as an edge case any more. People don't want to run with an 8GB cache on a 1TB server. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Commits
-
Fix size overflow in calculation introduced by commits d6ad34f3 and bea449c6.
- 519e4c9ee21a 14.0 landed
-
Optimize DropRelFileNodesAllBuffers() for recovery.
- bea449c635c0 14.0 landed
-
Optimize DropRelFileNodeBuffers() for recovery.
- d6ad34f3410f 14.0 landed
-
Cache smgrnblocks() results in recovery.
- c5315f4f4484 14.0 cited
-
Add a check to prevent overwriting valid data if smgrnblocks() gives a
- ffae5cc5a602 8.2.0 cited