Re: When does sequential performance matter in PG? - Mailing list pgsql-performance

From Matthew Wakeling
Subject Re: When does sequential performance matter in PG?
Date
Msg-id alpine.DEB.2.00.0903101425050.559@aragorn.flymine.org
Whole thread Raw
In response to When does sequential performance matter in PG?  (henk de wit <henk53602@hotmail.com>)
Responses Re: When does sequential performance matter in PG?
Re: When does sequential performance matter in PG?
List pgsql-performance
On Tue, 10 Mar 2009, henk de wit wrote:
> It is frequently said that for PostgreSQL the number 1 thing to pay
> attention to when increasing performance is the amount of IOPS a storage
> system is capable of. Now I wonder if there is any situation in which
> sequential IO performance comes into play. E.g. perhaps during a
> tablescan on a non-fragmented table, or during a backup or restore?

Yes, up to a point. That point is when a single CPU can no longer handle
the sequential transfer rate. Yes, there are some parallel restore
possibilities which will get you further. Generally it only takes a few
discs to max out a single CPU though.

> The reason I'm asking is that we're building a storage array and for
> some reason are unable to increase the number of random IOPS beyond a
> certain threshold when we add more controllers or more (SSD) disks to
> the system. However, the sequential performance keeps increasing when we
> do that.

Are you sure you're measuring the maximum IOPS, rather than measuring the
IOPS capable in a single thread? The advantage of having more discs is
that you can perform more operations in parallel, so if you have lots of
simultaneous requests they can be spread over the disc array.

Matthew

--
 [About NP-completeness] These are the problems that make efficient use of
 the Fairy Godmother.                    -- Computer Science Lecturer

pgsql-performance by date:

Previous
From: henk de wit
Date:
Subject: When does sequential performance matter in PG?
Next
From: fche@redhat.com (Frank Ch. Eigler)
Date:
Subject: Re: Query much slower when run from postgres function