Обсуждение: pgsql: Reduce CPU utilisation of WALSender process.

Поиск
Список
Период
Сортировка

pgsql: Reduce CPU utilisation of WALSender process.

От
sriggs@postgresql.org (Simon Riggs)
Дата:
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)