pgsql: Avoid unnecessary process wakeups in the log collector.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Avoid unnecessary process wakeups in the log collector.
Date: 2012-05-12 23:22:27
Message-ID: E1STLdr-000284-9o@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Avoid unnecessary process wakeups in the log collector.

syslogger was coded to wake up once per second whether there was anything
useful to do or not. As part of our campaign to reduce the server's idle
power consumption, change it to use a latch for waiting. Now, in the
absence of any data to log or any signals to service, it will only wake up
at the programmed logfile rotation times (if any).

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/398b240151708d7e971631875760ddbad3a63e0e

Modified Files
--------------
src/backend/postmaster/syslogger.c | 95 +++++++++++++++++++++++++-----------
1 files changed, 66 insertions(+), 29 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2012-05-13 04:31:03 pgsql: Fix bogus declaration of local variable.
Previous Message Peter Eisentraut 2012-05-12 20:39:54 pgsql: Remove unused AC_SUBST variables