Re: Storing hot members of PGPROC out of the band - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Storing hot members of PGPROC out of the band
Date
Msg-id CA+TgmobpyrFFcuD2KWtwn+WqDUSpFeFLABjvdcLztvTiSqWOdA@mail.gmail.com
Whole thread Raw
In response to Re: Storing hot members of PGPROC out of the band  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
On Fri, Dec 16, 2011 at 8:25 PM, Bruce Momjian <bruce@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


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: JSON for PG 9.2
Next
From: Robert Haas
Date:
Subject: Re: ALTER TABLE lock strength reduction patch is unsafe