Re: Lockless queue of waiters in LWLock

From: Pavel Borisov <pashkin(dot)elfe(at)gmail(dot)com>
To: Alexander Korotkov <aekorotkov(at)gmail(dot)com>
Cc: Andres Freund <andres(at)anarazel(dot)de>, Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Lockless queue of waiters in LWLock
Date: 2022-11-17 12:07:37
Message-ID: CALT9ZEF80HJvVZ_bEPzfdDsPBPmCSb0QT4b82vXGFRkHis1pLg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi, hackers!

I've noticed that alignment requirements for using
pg_atomic_init_u64() for LWlock state (there's an assertion that it's
aligned at 8 bytes) do not correspond to the code in SimpleLruInit()
on 32-bit arch when MAXIMUM_ALIGNOF = 4.
Fixed this in v4 patch (PFA).

Regards,
Pavel.

Attachment Content-Type Size
v4-0001-Lockless-queue-of-LWLock-waiters.patch application/octet-stream 45.2 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ted Yu 2022-11-17 12:12:47 redundant check of msg in does_not_exist_skipping
Previous Message Thom Brown 2022-11-17 12:04:46 Re: [PoC] Reducing planning time when tables have many partitions