Re: Latches vs lwlock contention

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: vignesh C <vignesh21(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Yura Sokolov <y(dot)sokolov(at)postgrespro(dot)ru>, Andres Freund <andres(at)anarazel(dot)de>
Subject: Re: Latches vs lwlock contention
Date: 2023-03-04 19:50:30
Message-ID: CA+hUKG+q6UGK9S4RcJHHo9o24zsvhRd9g2faF1x4vCn3zdHQqQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Jan 28, 2023 at 3:39 AM vignesh C <vignesh21(at)gmail(dot)com> wrote:
> On Tue, 1 Nov 2022 at 16:40, Thomas Munro <thomas(dot)munro(at)gmail(dot)com> wrote:
> > Here's an attempt at that. There aren't actually any cases of uses of
> > this stuff in critical sections here, so perhaps I shouldn't bother
> > with that part. The part I'd most like some feedback on is the
> > heavyweight lock bits. I'll add this to the commitfest.
>
> The patch does not apply on top of HEAD as in [1], please post a rebased patch:

Rebased. I dropped the CV patch for now.

Attachment Content-Type Size
v3-0001-Allow-palloc_extended-NO_OOM-in-critical-sections.patch text/x-patch 1.9 KB
v3-0002-Provide-SetLatches-for-batched-deferred-latches.patch text/x-patch 9.2 KB
v3-0003-Use-SetLatches-for-synchronous-replication-wakeup.patch text/x-patch 3.4 KB
v3-0004-Use-SetLatches-for-SERIALIZABLE-DEFERRABLE-wakeup.patch text/x-patch 4.6 KB
v3-0005-Use-SetLatches-for-heavyweight-locks.patch text/x-patch 14.1 KB
v3-0006-Don-t-re-acquire-LockManager-partition-lock-after.patch text/x-patch 6.2 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joseph Koshakow 2023-03-04 20:05:08 Re: Date-time extraneous fields with reserved keywords
Previous Message Tom Lane 2023-03-04 19:48:23 Re: Date-time extraneous fields with reserved keywords