Re: heavily contended lwlocks with long wait queues scale badly - Mailing list pgsql-hackers

From Andres Freund
Subject Re: heavily contended lwlocks with long wait queues scale badly
Date
Msg-id 20221031235114.ftjkife57zil7ryw@awork3.anarazel.de
Whole thread Raw
In response to Re: heavily contended lwlocks with long wait queues scale badly  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Responses Re: heavily contended lwlocks with long wait queues scale badly
Re: heavily contended lwlocks with long wait queues scale badly
List pgsql-hackers
Hi,

On 2022-10-31 16:21:06 +0530, Bharath Rupireddy wrote:
> BTW, I've seen a sporadic crash (SEGV) with the patch in bg writer
> with the same set up [1], I'm not sure if it's really because of the
> patch. I'm unable to reproduce it now and unfortunately I didn't
> capture further details when it occurred.

That's likely because the prototype patch I submitted in this thread missed
updating LWLockUpdateVar().

Updated patch attached.

Greetings,

Andres Freund

Attachment

pgsql-hackers by date:

Previous
From: Zhihong Yu
Date:
Subject: Reusing return value from planner_rt_fetch
Next
From: Andres Freund
Date:
Subject: Re: ResourceOwner refactoring