pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alex Turner <armtuk@gmail.com>
To: Jacques Caron <jc@directinfos.com>
Cc: Greg Stark <gsstark@mit.edu>
Cc: William Yu <wyu@talisys.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: How to improve db performance with $7K?
Date: Mon, 18 Apr 2005 14:16:15 -0400
Message-ID: <33c6269f05041811165228c814@mail.gmail.com> (raw)
In-Reply-To: <6.2.0.14.0.20050418192528.04238088@pop.interactivemediafactory.net>
References: <CC74E7E10A8A054798B6611BD1FEF4D30625DA5B@vamail01.thexchange.com>
	<425EBA0C.6030804@sfnet.cc>
	<d3vpnn$2iu$1@news.hub.org>
	<87pswsku6e.fsf@stark.xeocode.com>
	<33c6269f0504180817511b27a3@mail.gmail.com>
	<878y3gks3p.fsf@stark.xeocode.com>
	<33c6269f05041809566abf91d2@mail.gmail.com>
	<6.2.0.14.0.20050418192528.04238088@pop.interactivemediafactory.net>

Ok - well - I am partially wrong...

If you're stripe size is 64Kb, and you are reading 256k worth of data,
it will be spread across four drives, so you will need to read from
four devices to get your 256k of data (RAID 0 or 5 or 10), but if you
are only reading 64kb of data, I guess you would only need to read
from one disk.

So my assertion that adding more drives doesn't help is pretty
wrong... particularly with OLTP because it's always dealing with
blocks that are smaller that the stripe size.

Alex Turner
netEconomist

On 4/18/05, Jacques Caron <jc@directinfos.com> wrote:
> Hi,
> 
> At 18:56 18/04/2005, Alex Turner wrote:
> >All drives are required to fill every request in all RAID levels
> 
> No, this is definitely wrong. In many cases, most drives don't actually
> have the data requested, how could they handle the request?
> 
> When reading one random sector, only *one* drive out of N is ever used to
> service any given request, be it RAID 0, 1, 0+1, 1+0 or 5.
> 
> When writing:
> - in RAID 0, 1 drive
> - in RAID 1, RAID 0+1 or 1+0, 2 drives
> - in RAID 5, you need to read on all drives and write on 2.
> 
> Otherwise, what would be the point of RAID 0, 0+1 or 1+0?
> 
> Jacques.
> 
>



view thread (119+ messages)  latest in thread

Message-ID: <33c6269f05041811165228c814@mail.gmail.com>
Permalink:  ../33c6269f05041811165228c814@mail.gmail.com/
Also on:    postgresql.org/message-id/33c6269f05041811165228c814@mail.gmail.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: armtuk@gmail.com, jc@directinfos.com, gsstark@mit.edu, wyu@talisys.com
  Subject: Re: How to improve db performance with $7K?
  In-Reply-To: <33c6269f05041811165228c814@mail.gmail.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