pg.ddx.io pgsql-hackers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Васильев Дмитрий <d.vasilyev@postgrespro.ru>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Performance degradation in commit ac1d794
Date: Thu, 14 Jan 2016 10:14:43 -0500
Message-ID: <19268.1452784483@sss.pgh.pa.us> (raw)
In-Reply-To: <20160114143931.GG10941@awork2.anarazel.de>
References: <EA5F5A26-2E66-4CAB-B3EC-EAD65501B74B@anarazel.de>
<CAB-SwXZ+6==ZmGvME9vKtUExaQuYYf6oRUNBjkg5SYqv267dUQ@mail.gmail.com>
<9F7A592C-323B-40CF-AEB6-20D28EAEFFDD@anarazel.de>
<CAB-SwXb1p6W-_Qrd=h=c47Tv1DuWJwLYNWyq8j9g2yRp4ye-BQ@mail.gmail.com>
<19322.1451067023@sss.pgh.pa.us>
<CEAB3A3D-FD33-4AB9-BDD3-FC0E20776245@anarazel.de>
<19834.1451068135@sss.pgh.pa.us>
<20151225211326.z4umuafvv27nczya@alap3.anarazel.de>
<24833.1451078993@sss.pgh.pa.us>
<20151226112248.uv3qxmroe4va7wke@alap3.anarazel.de>
<20160114143931.GG10941@awork2.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Andres Freund <andres@anarazel.de> writes:
> 0004 currently contains one debatable optimization, which I'd like to
> discuss: Currently the 'sock' passed to WaitLatchOrSocket is not
> removed/added to the epoll fd, if it's the numerically same as in the
> last call. That's good for performance, but would be wrong if the socket
> were close and a new one with the same value would be waited on. I
> think a big warning sign somewhere is sufficient to deal with that
> problem - it's not something we're likely to start doing. And even if
> it's done at some point, we can just offer an API to reset the last used
> socket fd.
Perhaps a cleaner API solution would be to remove the socket argument per
se from the function altogether, instead providing a separate
SetSocketToWaitOn() call.
(Also, if there is a need for it, we could provide a function that still
takes a socket argument, with the understanding that it's to be used for
short-lived sockets where you don't want to change the process's main
epoll state.)
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
view thread (93+ messages) latest in thread
Message-ID: <19268.1452784483@sss.pgh.pa.us> Permalink: ../19268.1452784483@sss.pgh.pa.us/ Also on: postgresql.org/message-id/19268.1452784483@sss.pgh.pa.us ·
reply
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 using the --to and --cc options: reply via email To: pgsql-hackers@postgresql.org Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, robertmhaas@gmail.com, d.vasilyev@postgrespro.ru Subject: Re: Performance degradation in commit ac1d794 In-Reply-To: <19268.1452784483@sss.pgh.pa.us> * 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