pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Brown <kevin@sysexperts.com>
To: pgsql-performance@postgresql.org
Subject: Re: How to improve db performance with $7K?
Date: Fri, 15 Apr 2005 17:53:50 -0700
Message-ID: <20050416005350.GF19518@filer> (raw)
In-Reply-To: <29785.1113542934@sss.pgh.pa.us>
References: <87wtrfmgt5.fsf@stark.xeocode.com>
	<13449.1112847297@sss.pgh.pa.us>
	<20050414055655.GB19518@filer>
	<878y3lj23o.fsf@stark.xeocode.com>
	<20050414083608.GC19518@filer>
	<446.1113489854@sss.pgh.pa.us>
	<20050415020337.GD19518@filer>
	<28523.1113532916@sss.pgh.pa.us>
	<20050415050336.GE19518@filer>
	<29785.1113542934@sss.pgh.pa.us>

Tom Lane wrote:
> Kevin Brown <kevin@sysexperts.com> writes:
> > In the case of pure random reads, you'll end up having to wait an
> > average of half of a rotation before beginning the read.
> 
> You're assuming the conclusion.  The above is true if the disk is handed
> one request at a time by a kernel that doesn't have any low-level timing
> information.  If there are multiple random requests on the same track,
> the drive has an opportunity to do better than that --- if it's got all
> the requests in hand.

True, but see below.  Actually, I suspect what matters is if they're
on the same cylinder (which may be what you're talking about here).
And in the above, I was assuming randomly distributed single-sector
reads.  In that situation, we can't generically know what the
probability that more than one will appear on the same cylinder
without knowing something about the drive geometry.


That said, most modern drives have tens of thousands of cylinders (the
Seagate ST380011a, an 80 gigabyte drive, has 94,600 tracks per inch
according to its datasheet), but much, much smaller queue lengths
(tens of entries, hundreds at most, I'd expect.  Hard data on this
would be appreciated).  For purely random reads, the probability that
two or more requests in the queue happen to be in the same cylinder is
going to be quite small.


-- 
Kevin Brown					      kevin@sysexperts.com



view thread (119+ messages)  latest in thread

Message-ID: <20050416005350.GF19518@filer>
Permalink:  ../20050416005350.GF19518@filer/
Also on:    postgresql.org/message-id/20050416005350.GF19518@filer

 · 

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: kevin@sysexperts.com
  Subject: Re: How to improve db performance with $7K?
  In-Reply-To: <20050416005350.GF19518@filer>

* 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