pgsql: Use signalfd(2) for epoll latches.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use signalfd(2) for epoll latches.
Date: 2021-03-01 01:26:45
Message-ID: E1lGXKf-0007dp-JK@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use signalfd(2) for epoll latches.

Cut down on system calls and other overheads by reading from a signalfd
instead of using a signal handler and self-pipe. Affects Linux sytems,
and possibly others including illumos that implement the Linux epoll and
signalfd interfaces.

Reviewed-by: Andres Freund <andres(at)anarazel(dot)de>
Discussion: https://postgr.es/m/CA+hUKGJjxPDpzBE0a3hyUywBvaZuC89yx3jK9RFZgfv_KHU7gg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6a2a70a02018d6362f9841cc2f499cc45405e86b

Modified Files
--------------
src/backend/libpq/pqsignal.c | 4 +-
src/backend/storage/ipc/latch.c | 159 ++++++++++++++++++++++++++------------
src/backend/utils/init/miscinit.c | 10 +--
3 files changed, 118 insertions(+), 55 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Kapila 2021-03-01 02:46:33 pgsql: Update the docs and comments for decoding of prepared xacts.
Previous Message Thomas Munro 2021-02-28 22:27:36 pgsql: Remove latch.c workaround for Linux < 2.6.27.