Re: Inserting 8MB bytea: just 25% of disk perf used?

From: "fkater(at)googlemail(dot)com" <fkater(at)googlemail(dot)com>
To: Matthew Wakeling <matthew(at)flymine(dot)org>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Inserting 8MB bytea: just 25% of disk perf used?
Date: 2010-01-14 20:18:54
Message-ID: 20100114201854.GC2384@comppasch2
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


Thanks a lot for the detailed reply.

Matthew Wakeling:

> On Thu, 14 Jan 2010, fkater(at)googlemail(dot)com wrote:
> > This takes about 50s, so, 800MB/50s = 16MB/s.
> >
> > However the harddisk (sata) could write 43 MB/s in the worst
> > case! Why is write performance limited to 16 MB/s?
>
> Several reasons:
>
> The data needs to be written first to the WAL, in order to provide
> crash-safety. So you're actually writing 1600MB, not 800.

I understand. So the actual throughput is 32MB/s which is
closer to 43 MB/s, of course.

Can I verify that by temporarily disabling WAL writes
completely and see if the thoughput is then doubled?

Felix

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Eduardo Piombino 2010-01-14 20:49:04 Re: a heavy duty operation on an "unused" table kills my server
Previous Message fkater@googlemail.com 2010-01-14 20:14:17 Re: Inserting 8MB bytea: just 25% of disk perf used?