X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6689253B57 for ; Fri, 15 Apr 2005 02:29:01 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 65555-02 for ; Fri, 15 Apr 2005 05:28:56 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id B947353AA6 for ; Fri, 15 Apr 2005 02:28:54 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j3F5Ss4K029786; Fri, 15 Apr 2005 01:28:54 -0400 (EDT) To: Kevin Brown Cc: pgsql-performance@postgresql.org Subject: Re: How to improve db performance with $7K? In-reply-to: <20050415050336.GE19518@filer> References: <20050406224102.GM93835@decibel.org> <33c6269f0504061732195f6ae4@mail.gmail.com> <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> Comments: In-reply-to Kevin Brown message dated "Thu, 14 Apr 2005 22:03:36 -0700" Date: Fri, 15 Apr 2005 01:28:54 -0400 Message-ID: <29785.1113542934@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/329 X-Sequence-Number: 11726 Kevin Brown 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. regards, tom lane