pgsql: Reduce CPU utilisation of WALSender process.

From: sriggs(at)postgresql(dot)org (Simon Riggs)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Reduce CPU utilisation of WALSender process.
Date: 2010-03-24 20:11:12
Message-ID: 20100324201112.3B7FA7541D0@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Reduce CPU utilisation of WALSender process. Process was using 10% CPU
doing nothing, caused by naptime specified in milliseconds yet units of
pg_usleep() parameter is microseconds. Correctly specifying units
reduces call frequency by 1000. Reduction in CPU consumption verified.

Modified Files:
--------------
pgsql/src/backend/replication:
walsender.c (r1.10 -> r1.11)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/replication/walsender.c?r1=1.10&r2=1.11)

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2010-03-24 21:25:51 pgsql: Change replication connection log format to allow for a database
Previous Message Tom Lane 2010-03-24 17:05:58 pgsql: Fix thinko in log message for "sameuser" ident map mismatch: the