pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Jeremy Harris <jgh@wizmail.org>
To: pgsql-performance@postgresql.org
Subject: Re: I/O on select count(*)
Date: Sat, 17 May 2008 14:13:52 +0100
Message-ID: <482EDA10.5060603@wizmail.org> (raw )
In-Reply-To: <18382.1210992302@sss.pgh.pa.us >
References: <920841.71690.qm@web44808.mail.sp1.yahoo.com >
<482B1D5F.EE98.0025.0@wicourts.gov >
<Pine.GSO.4.64.0805142133250.27290@westnet.com >
<20080515020553.GN9838@alvh.no-ip.org >
<Pine.LNX.4.64.0805151245360.16756@aragorn.flymine.org >
<20080515155232.GC8221@alvh.no-ip.org >
<Pine.GSO.4.64.0805161118210.4987@westnet.com >
<20080516201528.GJ13061@alvh.no-ip.org >
<18382.1210992302@sss.pgh.pa.us >
Tom Lane wrote:
> One additional point: this means that one transaction in every 32K
> writing transactions *does* have to do extra work when it assigns itself
> an XID, namely create and zero out the next page of pg_clog. And that
> doesn't just slow down the transaction in question, but the next few
> guys that would like an XID but arrive on the scene while the
> zeroing-out is still in progress.
>
> This probably contributes to the behavior that Simon and Josh regularly
> complain about, that our transaction execution time is subject to
> unpredictable spikes. I'm not sure how to get rid of it though.
A thread maintaining a pool of assigned and cleared pg_clog pages, ahead
of the immediate need? Possibly another job for an existing daemon
thread.
- Jeremy
view thread (54+ messages) latest in thread
Message-ID: <482EDA10.5060603@wizmail.org>
Permalink: ../482EDA10.5060603@wizmail.org/
Also on: postgresql.org/message-id/482EDA10.5060603@wizmail.org
copy link · copy postgr.es
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: jgh@wizmail.org
Subject: Re: I/O on select count(*)
In-Reply-To: <482EDA10.5060603@wizmail.org>
* 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