Re: Process wakeups when idle and power consumption

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Peter Geoghegan <peter(at)2ndquadrant(dot)com>, Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Process wakeups when idle and power consumption
Date: 2011-05-10 16:16:22
Message-ID: BANLkTinP++JH7-mXMtzHS2u1QkHiewtC6w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, May 10, 2011 at 12:45 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> On Tue, May 10, 2011 at 5:14 AM, Peter Geoghegan <peter(at)2ndquadrant(dot)com> wrote:
>> On 10 May 2011 09:45, Heikki Linnakangas
>> <heikki(dot)linnakangas(at)enterprisedb(dot)com> wrote:
>>
>>> I think we need to refactor the function into something like:
>>>
>>> #define WL_LATCH_SET    1
>>> #define WL_SOCKET_READABLE 2
>>> #define WL_SOCKET_WRITEABLE 4
>>> #define WL_TIMEOUT      8
>>> #define WL_POSTMASTER_DEATH 16
>>
>> While I agree with the need to not box ourselves into a corner on the
>> latch interface by making sweeping assumptions, isn't the fact that a
>> socket became readable or writable strictly an implementation detail?
>
> The thing about the socket being readable/writeable is needed for
> walsender.  It needs to notice when its connection to walreceiver is
> writeable (so it can send more WAL) or readable (so it can receive a
> reply message).

I've got a feeling that things will go easier if we have a separate
connection for the feedback channel.

Yes, two connections, one in either direction.

That would make everything simple, nice one way connections. It would
also mean we could stream at higher data rates.

--
 Simon Riggs                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Grittner 2011-05-10 16:17:44 Re: the big picture for index-only scans
Previous Message Cédric Villemain 2011-05-10 16:07:42 Re: the big picture for index-only scans