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

From Alexander Korotkov
Subject Re: heavily contended lwlocks with long wait queues scale badly
Date
Msg-id CAPpHfdv6ggM3XNPMNZKe+QdfBhv8tB+8SWtnuY61X7VKywNsxw@mail.gmail.com
Whole thread Raw
In response to Re: heavily contended lwlocks with long wait queues scale badly  (Pavel Borisov <pashkin.elfe@gmail.com>)
List pgsql-hackers
Hi Andres,

Thank you for your patch. The results are impressive.

On Mon, Oct 31, 2022 at 2:10 PM Pavel Borisov <pashkin.elfe@gmail.com> wrote:
>
> I was working on optimizing the LWLock queue in a little different way
> and I also did a benchmarking of Andres' original patch from this
> thread. [1]
> The results are quite impressive, indeed. Please feel free to see the
> results and join the discussion in [1] if you want.
>
> Best regards,
> Pavel
>
> [1]
https://www.postgresql.org/message-id/flat/CALT9ZEEz%2B%3DNepc5eti6x531q64Z6%2BDxtP3h-h_8O5HDdtkJcPw%40mail.gmail.com

Pavel posted a patch implementing a lock-less queue for LWLock. The
results are interesting indeed, but slightly lower than your current
patch have. The current Pavel's patch probably doesn't utilize the
full potential of lock-less idea. I wonder what do you think about
this direction? We would be grateful for your guidance. Thank you.

------
Regards,
Alexander Korotkov



pgsql-hackers by date:

Previous
From: Bharath Rupireddy
Date:
Subject: Re: Adding doubly linked list type which stores the number of items in the list
Next
From: Simon Riggs
Date:
Subject: Re: Code checks for App Devs, using new options for transaction behavior