Re: Lock contention (was Re: [PATCHES] update i386

From: Neil Conway <neilc(at)samurai(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Manfred Spraul <manfred(at)colorfullife(dot)com>, pgsql-hackers(at)postgreSQL(dot)org, markw(at)osdl(dot)org
Subject: Re: Lock contention (was Re: [PATCHES] update i386
Date: 2004-01-04 06:56:27
Message-ID: m2y8so6w2s.fsf@mailbox.samurai.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-patches

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
> LRU etc have nothing to do with this. The majority of trips into the
> buffer manager are for ReadBuffer/ReleaseBuffer. What we need is to
> figure a way for those operations to use finer-grain locks so they don't
> contend so much.

I reimplemented much of bufmgr.c over the holidays, with the goal of
reducing the contention for the BufMgrLock as well as fixing some
other less important problems. Where possible, operations that only
effect the state of a single buffer now only need to acquire a
per-buffer "meta data lock". I haven't done any benchmarking yet, but
this should hopefully improve concurrent performance. The patch isn't
quite finished yet, but I'll post it to the list in a few days once
I've had a chance to wrap up a few loose ends.

-Neil

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mark Kirkwood 2004-01-04 07:14:40 Re: TPC-C and Postgres
Previous Message Keith C. Perry 2004-01-04 04:59:45 Re: TPC-C and Postgres

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Kirkwood 2004-01-04 07:22:10 Re: psql \d option list overloaded
Previous Message A E 2004-01-04 04:05:15 Repost of Functions Returning Record Datatype

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2004-01-04 17:29:39 Re: psql \i handling ~ in specified file name
Previous Message Bruce Momjian 2004-01-03 01:53:39 Re: [PATCHES] (Modified) Patch request for PostgreSQL 7.4 for