pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: guoping.zhang@nec.com.au
Cc: 'Simon Riggs' <simon@2ndquadrant.com>
Cc: pgsql-performance@postgresql.org, "'Guoping Zhang (E-mail)'" <guopingz@nstc.nec.com.au>
Subject: Re: how unsafe (or worst scenarios) when setting fsync
Date: Fri, 28 Apr 2006 01:05:48 -0400
Message-ID: <25360.1146200748@sss.pgh.pa.us> (raw)
In-Reply-To: <004201c66a80$c8f86d00$74304c93@eddy>
References: <004201c66a80$c8f86d00$74304c93@eddy>

"Guoping Zhang" <guoping.zhang@nec.com.au> writes:
> But altering the commit_delay from 1 to 100000, I observed that there is no
> time difference for the operation. Why is that? As our tests consists of
> 10000 small transactions which completed in 66 seconds, that is, about 160
> transactions per second. When commit_delay set to 100000 (i.e., 0.1 second),
> that in theory, shall group around 16 transactions into one commit, but
> result is same from the repeated test. Am I mistaken something here?

commit_delay can only help if there are multiple clients issuing
transactions concurrently, so that there are multiple commits pending at
the same instant.  If you are issuing one serial stream of transactions,
it's useless.

If you do have multiple active clients, then we need to look more closely;
but your statement does not indicate that.

			regards, tom lane



view thread (14+ messages)  latest in thread

Message-ID: <25360.1146200748@sss.pgh.pa.us>
Permalink:  ../25360.1146200748@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25360.1146200748@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, guoping.zhang@nec.com.au, simon@2ndquadrant.com, guopingz@nstc.nec.com.au
  Subject: Re: how unsafe (or worst scenarios) when setting fsync
  In-Reply-To: <25360.1146200748@sss.pgh.pa.us>

* 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