pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Gregory Stark <gsstark@mit.edu>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: Matthew <matthew@flymine.org>
Cc: Mark Mielke <mark@mark.mielke.cc>
Cc: pgsql-performance@postgresql.org
Subject: Re: RAID arrays and performance
Date: 29 Jan 2008 11:45:20 -0500
Message-ID: <873asginrz.fsf@stark.xeocode.com> (raw )
In-Reply-To: <479EFE9A.EE98.0025.0@wicourts.gov >
References: <Pine.LNX.4.58.0712041213490.3731@aragorn.flymine.org >
<87lk8aiqf3.fsf@oxford.xeocode.com >
<Pine.LNX.4.58.0712041247540.3731@aragorn.flymine.org >
<475559F4.7060104@mark.mielke.cc >
<Pine.LNX.4.58.0712041349380.3731@aragorn.flymine.org >
<4755648C.90905@mark.mielke.cc >
<Pine.LNX.4.58.0712041454110.3731@aragorn.flymine.org >
<87bq96ii3b.fsf@oxford.xeocode.com >
<Pine.LNX.4.58.0712041603490.3731@aragorn.flymine.org >
<4755810E.4000707@mark.mielke.cc >
<Pine.LNX.4.58.0712041637260.3731@aragorn.flymine.org >
<87zlwq6yz9.fsf@oxford.xeocode.com >
<Pine.LNX.4.64.0801291417330.4642@aragorn.flymine.org >
<87bq74vfys.fsf@oxford.xeocode.com >
<Pine.LNX.4.64.0801291505180.4642@aragorn.flymine.org >
<Pine.LNX.4.64.0801291505180.4642@aragorn.flymine.org >
<877ihsvdcb.fsf@oxford.xeocode.com >
<479EFE9A.EE98.0025.0@wicourts.gov >
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> >>> On Tue, Jan 29, 2008 at 9:52 AM, in message
> <877ihsvdcb.fsf@oxford.xeocode.com >, Gregory Stark <stark@enterprisedb.com>
> wrote:
>
> > I got this from a back-of-the-envelope calculation which now that I'm trying
> > to reproduce it seems to be wrong. Previously I thought it was n(n+1)/2 or
> > about n^2/2. So at 16 I would have expected about 128 pending i/o requests
> > before all the drives could be expected to be busy.
>
> That seems right to me, based on the probabilities of any new
> request hitting an already-busy drive.
>
> > Now that I'm working it out more carefully I'm getting that the expected
> > number of pending i/o requests before all drives are busy is
> > n + n/2 + n/3 + ... + n/n
>
> What's the basis for that?
Well consider when you've reached n-1 drives; the expected number of requests
before you hit the 1 idle drive remaining out of n would be n requests. When
you're at n-2 the expected number of requests before you hit either of the two
idle drives would be n/2. And so on. The last term of n/n would be the first
i/o when all the drives are idle and you obviously only need one i/o to hit an
idle drive.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
view thread (39+ messages) latest in thread
Message-ID: <873asginrz.fsf@stark.xeocode.com>
Permalink: ../873asginrz.fsf@stark.xeocode.com/
Also on: postgresql.org/message-id/873asginrz.fsf@stark.xeocode.com
copy link · copy postgr.es
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: gsstark@mit.edu, Kevin.Grittner@wicourts.gov, matthew@flymine.org, mark@mark.mielke.cc
Subject: Re: RAID arrays and performance
In-Reply-To: <873asginrz.fsf@stark.xeocode.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