pg.ddx.io pgsql-performance@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Greg Smith <greg@2ndquadrant.com>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: hannu@krosing.net
Cc: alvherre@commandprompt.com
Cc: aidan@highrise.ca
Cc: jesper@krogh.cc
Cc: pgsql-performance@postgresql.org
Subject: Re: moving pg_xlog -- yeah, it's worth it!
Date: Sat, 13 Feb 2010 01:29:38 -0500
Message-ID: <4B7646D2.3010508@2ndquadrant.com> (raw)
In-Reply-To: <4B750193020000250002F22D@gw.wicourts.gov>
References: <4B750193020000250002F22D@gw.wicourts.gov>
Kevin Grittner wrote:
> I wonder if it might also pay to make the background writer even more
> aggressive than we have, so that SELECT-only queries don't spend so
> much time writing pages.
You can easily quantify if the BGW is aggressive enough. Buffers leave
the cache three ways, and they each show up as separate counts in
pg_stat_bgwriter: buffers_checkpoint, buffers_clean (the BGW), and
buffers_backend (the queries). Cranking it up further tends to shift
writes out of buffers_backend, which are the ones you want to avoid,
toward buffers_clean instead. If buffers_backend is already low on a
percentage basis compared to the other two, there's little benefit in
trying to make the BGW do more.
--
Greg Smith 2ndQuadrant Baltimore, MD
PostgreSQL Training, Services and Support
greg@2ndQuadrant.com www.2ndQuadrant.com
view thread (19+ messages) latest in thread
Message-ID: <4B7646D2.3010508@2ndquadrant.com> Permalink: ../4B7646D2.3010508@2ndquadrant.com/ Also on: postgresql.org/message-id/4B7646D2.3010508@2ndquadrant.com ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients using the --to and --cc options: reply via email To: pgsql-performance@postgresql.org Cc: greg@2ndquadrant.com, Kevin.Grittner@wicourts.gov, hannu@krosing.net, alvherre@commandprompt.com, aidan@highrise.ca, jesper@krogh.cc Subject: Re: moving pg_xlog -- yeah, it's worth it! In-Reply-To: <4B7646D2.3010508@2ndquadrant.com> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox