Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C62832E3835 for ; Mon, 4 Feb 2008 20:17:52 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 72880-06 for ; Mon, 4 Feb 2008 20:17:48 -0400 (AST) Received: from oxford.xeocode.com (unknown [87.127.95.196]) by postgresql.org (Postfix) with ESMTP id 2D23A2E34E8 for ; Mon, 4 Feb 2008 20:17:48 -0400 (AST) Received: from localhost.enta.net ([127.0.0.1] helo=oxford.xeocode.com) by oxford.xeocode.com with esmtp (Exim 4.69) (envelope-from ) id 1JMBVR-0001b9-DU; Tue, 05 Feb 2008 00:17:45 +0000 To: "Jignesh K. Shah" Cc: "Simon Riggs" , Subject: Re: Benchmark Data requested In-Reply-To: <47A792BE.80804@sun.com> (Jignesh K. Shah's message of "Mon\, 04 Feb 2008 17\:33\:34 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Draft-From: ("nnimap+mail01.enterprisedb.com:INBOX.performance" 4122) References: <1202150236.4252.521.camel@ebony.site> <47A792BE.80804@sun.com> From: Gregory Stark Organization: EnterpriseDB Date: Tue, 05 Feb 2008 00:17:40 +0000 Message-ID: <87y7a045p7.fsf@oxford.xeocode.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/20 X-Sequence-Number: 28562 "Jignesh K. Shah" writes: > Also very important unless you are running the UPDATE FUNCTIONS which are > separate queries, all these Q1-Q22 Queries are pure "READ-ONLY" queries. > Traditionally I think PostgreSQL does lack "READ-SPEED"s specially since it is > bottlenecked by the size of the reads it does (BLOCKSIZE). Major database > provides multi-block parameters to do multiple of reads/writes in terms of > blocksizes to reduce IOPS and also for read only they also have READ-AHEAD or > prefetch sizes which is generally bigger than multi-block or extent sizes to > aid reads. Note that all of these things are necessitated by those databases using direct i/o of some form or another. The theory is that PostgreSQL doesn't have to worry about these things because the kernel is taking care of it. How true that is is a matter of some debate and it varies from OS to OS. But it's definitely true that the OS will do read-ahead for sequential reads, for example. Incidentally we found some cases that Solaris was particularly bad at. Is there anybody in particular that would be interested in hearing about them? (Not meant to be a knock on Solaris, I'm sure there are other cases Linux or BSD handle poorly too) -- Gregory Stark EnterpriseDB http://www.enterprisedb.com Ask me about EnterpriseDB's Slony Replication support!