pgsql: Reduce CPU utilisation of WALSender process. - Mailing list pgsql-committers

From sriggs@postgresql.org (Simon Riggs)
Subject pgsql: Reduce CPU utilisation of WALSender process.
Date
Msg-id 20100324201112.3B7FA7541D0@cvs.postgresql.org
Whole thread Raw
List 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)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix thinko in log message for "sameuser" ident map mismatch: the
Next
From: sriggs@postgresql.org (Simon Riggs)
Date:
Subject: pgsql: Change replication connection log format to allow for a database