Re: Please Help: PostgreSQL Query Optimizer

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: "Anjan Kumar(dot) A(dot)" <anjankumar(at)cse(dot)iitb(dot)ac(dot)in>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Please Help: PostgreSQL Query Optimizer
Date: 2005-12-12 20:40:03
Message-ID: 20051212204003.GY54639@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-benchmarks pgsql-chat pgsql-docs pgsql-hackers

On Mon, Dec 12, 2005 at 06:39:42PM +0530, Anjan Kumar. A. wrote:
> Through googling, i found that Normal Disk has external data transfer rate
> of around 40MBps,
> where as Main Memory has Data transfer rate ranging from 1.6GBps to 2.8GBps.

I think 40MB/s is a burst speed. You should do some testing to verify.

In any case, PostgreSQL doesn't come close to the theoretical maximum
disk bandwidth even on a sequential scan. There's been discussion about
this on various lists in the past. For a single drive, expect something
more in the range of 4-6MB/s (depending on the drive).

More important that throughput though, is latency. Because the latency
on memory is much closer to 0 (it's not truely 0 due to L1/L2 caching),
you can serve concurrent requests a lot faster.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Browse pgsql-benchmarks by date

  From Date Subject
Next Message Josh Berkus 2005-12-13 06:47:21 Re: [HACKERS] Please Help: PostgreSQL Query Optimizer
Previous Message Anjan Kumar. A. 2005-12-12 13:09:42 Re: Please Help: PostgreSQL Query Optimizer

Browse pgsql-chat by date

  From Date Subject
Next Message Josh Berkus 2005-12-13 06:47:21 Re: [HACKERS] Please Help: PostgreSQL Query Optimizer
Previous Message Anjan Kumar. A. 2005-12-12 13:09:42 Re: Please Help: PostgreSQL Query Optimizer

Browse pgsql-docs by date

  From Date Subject
Next Message Marc G. Fournier 2005-12-13 02:05:33 Re: Moving FAQs to PgFoundry
Previous Message Tony S 2005-12-12 16:28:03 Doc patch: Porting from Oracle (36.11) OUT INOUT parameters in plpgsql functions

Browse pgsql-hackers by date

  From Date Subject
Next Message Cristian Prieto 2005-12-12 21:18:29 replan needed?
Previous Message Martijn van Oosterhout 2005-12-12 20:35:45 Re: Different length lines in COPY CSV