Re: concurrent IO in postgres? - Mailing list pgsql-performance

From Jeff Janes
Subject Re: concurrent IO in postgres?
Date
Msg-id AANLkTimhWg9b5uE6aeog0X2rurCieF6fFF4h61dm=fpq@mail.gmail.com
Whole thread Raw
In response to Re: concurrent IO in postgres?  (Przemek Wozniak <wozniak@lanl.gov>)
Responses Re: concurrent IO in postgres?  (Mladen Gogala <mladen.gogala@vmsinfo.com>)
List pgsql-performance
On Thu, Dec 23, 2010 at 11:46 AM, Przemek Wozniak <wozniak@lanl.gov> wrote:

> In one test I was running between 1 and 32 clients simultaneously
> writing lots of data using copy binary.

Are you by-passing WAL?  If not, you are likely serializing on that.
Not so much the writing, but the lock.

> The problem is that with a large
> RAM buffer it all goes there, and then the background writer, a single
> postgres process, will issue write requests one at a time I suspect.

But those "writes" are probably just copies of 8K into kernel's RAM,
and so very fast.

> So the actual IO is effectively serialized by the backend.

If the background writer cannot keep up, then the individual backends
start doing writes as well, so it isn't really serialized..

Cheers,

Jeff

pgsql-performance by date:

Previous
From: "Pierre C"
Date:
Subject: Re: concurrent IO in postgres?
Next
From: Mladen Gogala
Date:
Subject: Re: concurrent IO in postgres?