Re: CommitDelay performance improvement

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: CommitDelay performance improvement
Date: 2001-02-24 05:22:25
Message-ID: 10857.982992145@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Preliminary results from experimenting with an
N-transactions-must-be-running-to-cause-commit-delay heuristic are
attached. It seems to be a pretty definite win. I'm currently running
a more extensive set of cases on another machine for comparison.

The test case is pgbench, unmodified, but run at scalefactor 10
to reduce write contention on the 'branch' rows. Postmaster
parameters are -N 100 -B 1024 in all cases. The fsync-off (with,
of course, no commit delay either) case is shown for comparison.
"commit siblings" is the number of other backends that must be
running active (unblocked, at least one XLOG entry made) transactions
before we will do a precommit delay.

commit delay=1 is effectively commit delay=10000 (10msec) on this
hardware. Interestingly, it seems that we can push the delay up
to two or three clock ticks without degradation, given positive N.

regards, tom lane

Attachment Content-Type Size
image/gif 5.6 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-02-24 06:07:17 Re: CommitDelay performance improvement
Previous Message Tom Lane 2001-02-24 05:07:09 Re: CommitDelay performance improvement