Re: Process wakeups when idle and power consumption

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Geoghegan <peter(at)2ndquadrant(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Process wakeups when idle and power consumption
Date: 2011-05-05 20:05:03
Message-ID: 8828.1304625903@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Geoghegan <peter(at)2ndquadrant(dot)com> writes:
> Attached is the first in what I hope will become a series of patches
> for reducing power consumption when idle.

Cool. This has been on my personal to-do list for awhile, but it keeps
on failing to get to the top, so I'm glad to see somebody else putting
time into it.

The major problem I'm aware of for getting rid of periodic wakeups is
the need for child processes to notice when the postmaster has died
unexpectedly. Your patch appears to degrade the archiver's response
time for that really significantly, like from O(1 sec) to O(1 min),
which I don't think is acceptable. We've occasionally kicked around
ideas for mechanisms that would solve this problem, but nothing's gotten
done. It doesn't seem to be an easy problem to solve portably...

> + * The caveat about signals invalidating the timeout of
> + * WaitLatch() on some platforms can be safely disregarded,

Really?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2011-05-05 20:08:00 Re: Process wakeups when idle and power consumption
Previous Message Simon Riggs 2011-05-05 19:52:11 Re: Unlogged vs. In-Memory