From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Improve logging of autovacuum I/O activity |
Date: | 2011-11-25 19:40:19 |
Message-ID: | E1RU1dD-0001MA-AD@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Improve logging of autovacuum I/O activity
This adds some I/O stats to the logging of autovacuum (when the
operation takes long enough that log_autovacuum_min_duration causes it
to be logged), so that it is easier to tune. Notably, it adds buffer
I/O counts (hits, misses, dirtied) and read and write rate.
Authors: Greg Smith and Noah Misch
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/9d3b50244357ef4c4e3b6e01f91de599077179c8
Modified Files
--------------
src/backend/commands/vacuum.c | 3 +++
src/backend/commands/vacuumlazy.c | 32 ++++++++++++++++++++++++++++----
src/backend/storage/buffer/bufmgr.c | 20 +++++++++++++++-----
src/backend/utils/init/globals.c | 4 ++++
src/include/miscadmin.h | 4 ++++
5 files changed, 54 insertions(+), 9 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2011-11-25 19:54:40 | pgsql: Allow pg_upgrade to upgrade clusters that use exclusion contrain |
Previous Message | Tom Lane | 2011-11-25 19:00:03 | pgsql: Fix erroneous replay of GIN_UPDATE_META_PAGE WAL records. |