Re: Sustained inserts per sec ... ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: Christopher Petrilli <petrilli(at)gmail(dot)com>, jd(at)commandprompt(dot)com, "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Sustained inserts per sec ... ?
Date: 2005-04-05 03:57:40
Message-ID: 7438.1112673460@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Greg Stark <gsstark(at)mit(dot)edu> writes:
> All this is happening within a single transaction too, right? So there hasn't
> been an fsync the entire time. It's entirely up to the kernel when to decide
> to start writing data.

No ... there's a commit every 500 records. However, I think Chris said
he was running with fsync off; so you're right that the kernel is at
liberty to write stuff to disk when it feels like. It could be that
those outlier points are transactions that occurred in the middle of
periodic syncer-driven mass writes. Maybe fsync off is
counterproductive for this situation?

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Jim C. Nasby 2005-04-05 04:04:57 Compressing WAL
Previous Message Christopher Petrilli 2005-04-05 03:55:00 Re: Sustained inserts per sec ... ?