From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use signalfd(2) for epoll latches.
Date: Mon, 01 Mar 2021 01:26:45 +0000
Message-ID: <E1lGXKf-0007dp-JK@gemulon.postgresql.org> (raw)
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@anarazel.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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tmunro@postgresql.org
Subject: Re: pgsql: Use signalfd(2) for epoll latches.
In-Reply-To: <E1lGXKf-0007dp-JK@gemulon.postgresql.org>
References: <E1lGXKf-0007dp-JK@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox