pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PFC <lists@peufeu.com>
To: Francisco Reyes <lists@stringsutils.com>
Cc: Pgsql performance <pgsql-performance@postgresql.org>
Subject: Re: RAID controllers for Postgresql on large setups
Date: Tue, 13 May 2008 22:46:04 +0200
Message-ID: <op.ua31a20rcigqcu@apollo13.peufeu.com> (raw)
In-Reply-To: <cone.1210680025.806890.27271.1000@zoraida.natserv.net>
References: <cone.1210644243.416947.84940.1000@zoraida.natserv.net>
	<op.ua26u3iacigqcu@apollo13.peufeu.com>
	<cone.1210680025.806890.27271.1000@zoraida.natserv.net>

>
>> 	You say that like you don't mind having PCI in a server whose job is  
>> to  perform massive query over large data sets.
>
> I am in my 4th week at a new job. Trying to figure what I am working  
> with.

	LOOL, ok, hehe, not exactly the time to have a "let's change everything"  
fit ;)

> From what I see I will likely get as much improvement from new hardware  
> as from re-doing some of the database design. Can't get everything done  
> at once, not to mention I have to redo one machine sooner rather than  
> later so I need to prioritize.
>
>> In fact for bulk IO a box with 2 SATA drives would be just as fast as   
>> your monster RAID, lol.
>
> I am working on setting up a standard test based on the type of  
> operations that the company does. This will give me a beter idea.  
> Specially I will work with the developers to make sure the queries I  
> create for the benchmark are representative of the workload.

	watching vmstat (or iostat) while running a very big seq scan query will  
give you information about the reading speed of your drives.
	Same for writes, during one of your big updates, watch vmstat, you'll  
know if you are CPU bound or IO bound...

- one core at 100% -> CPU bound
- lots of free CPU but lots of iowait -> disk bound
	- disk throughput decent (in your setup, 100 MB/s) -> PCI bus saturation
	- disk throughput miserable (< 10 MB/s) -> random IO bound (either random  
reads or fsync() or random writes depending on the case)
		
> In your opinion if we get a new machine with PCI-e, at how many spindles  
> will the  SCSI random access superiority start to be less notable?  
> Specially given the low number of connections we usually have running  
> against these machines.

	Sorting of random reads depends on multiple concurrent requests (which  
you don't have). Sorting of random writes does not depend on concurrent  
requests so, you'll benefit on your updates. About SCSI vs SATA vs number  
of spindles : can't answer this one.

> We are using one single SQL statement.

	OK, so forget about fsync penalty, but do tune your checkpoints so they  
are not happening all the time... and bgwriter etc.






view thread (16+ messages)  latest in thread

Message-ID: <op.ua31a20rcigqcu@apollo13.peufeu.com>
Permalink:  ../op.ua31a20rcigqcu@apollo13.peufeu.com/
Also on:    postgresql.org/message-id/op.ua31a20rcigqcu@apollo13.peufeu.com

 · 

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: lists@peufeu.com, lists@stringsutils.com
  Subject: Re: RAID controllers for Postgresql on large setups
  In-Reply-To: <op.ua31a20rcigqcu@apollo13.peufeu.com>

* 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