On Fri, Dec 16, 2011 at 8:25 PM, Bruce Momjian <br...@momjian.us> wrote: > Robert Haas wrote: >> On that theory, I'm inclined to think that's not really a problem. >> We'll go nuts if we refuse to commit anything until it shows a >> meaningful win on every imaginable workload, and it seems like this >> can't really be worse than the status quo; any case where it is must >> be some kind of artifact. We're better of getting rid of as much >> ProcArrayLock contention as possible, rather than keeping it around >> because there are corner cases where it decreases contention on some >> other lock. > > Interesting conclusion, and it makes sense. Seems once this is applied > we will have more places to look for contention improvements.
Yeah. The performance results I posted the other day seem to show that on some of these tests we're thrashing our CLOG buffers, and the difference between unlogged tables and permanent tables seems to indicate pretty clearly that WALInsertLock is a huge problem. I'm going to look more at the CLOG stuff next week, and also keep poking at ProcArrayLock, where I think there's still room for further improvement. I am leaving WALInsertLock to Heikki for now, since (1) I don't want to collide with what he's working on, (2) he knows more about it than I do, anyway, and (3) it's a really hard problem and I don't have any particularly good ideas about how to fix it. :-( -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers