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 92628529DA for ; Tue, 28 Jun 2005 14:27:04 -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 03166-01 for ; Tue, 28 Jun 2005 17:27:03 +0000 (GMT) Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by svr1.postgresql.org (Postfix) with ESMTP id D6B98528BD for ; Tue, 28 Jun 2005 14:27:02 -0300 (ADT) Received: from osgiliath.mathom.us ([70.108.108.63]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IIT00GQ41T19594@vms042.mailsrvcs.net> for pgsql-performance@postgresql.org; Tue, 28 Jun 2005 12:27:02 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by osgiliath.mathom.us (Postfix) with ESMTP id 2A8FA610196; Tue, 28 Jun 2005 13:27:01 -0400 (EDT) Received: from osgiliath.mathom.us ([127.0.0.1]) by localhost (osgiliath [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14240-01-4; Tue, 28 Jun 2005 13:27:01 -0400 (EDT) Received: by osgiliath.mathom.us (Postfix, from userid 1000) id 1154D60014F; Tue, 28 Jun 2005 13:27:01 -0400 (EDT) Date: Tue, 28 Jun 2005 13:27:01 -0400 From: Michael Stone Subject: Re: read block size In-reply-to: <42C182BF.1050808@arbash-meinel.com> To: John A Meinel Cc: pgsql-performance@postgresql.org Mail-Followup-To: John A Meinel , pgsql-performance@postgresql.org Message-id: <20050628172701.GW9591@mathom.us> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-disposition: inline X-Pgp-Fingerprint: 53 FF 38 00 E7 DD 0A 9C 84 52 84 C5 EE DF 7C 88 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at mathom.us References: <20050628152750.GV9591@mathom.us> <42C182BF.1050808@arbash-meinel.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.036 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200506/566 X-Sequence-Number: 13203 On Tue, Jun 28, 2005 at 12:02:55PM -0500, John A Meinel wrote: >There has been discussion about changing the reading/writing code to be >able to handle multiple pages at once, (using something like vread()) >but I don't know that it has been implemented. that sounds promising >Also, this would hurt cases where you can terminate as sequential scan >early. If you're doing a sequential scan of a 10G file in, say, 1M blocks I don't think the performance difference of reading a couple of blocks unnecessarily is going to matter. >And if the OS is doing it's job right, it will already do some >read-ahead for you. The app should have a much better idea of whether it's doing a sequential scan and won't be confused by concurrent activity. Even if the OS does readahead perfectly, you'll still get a with with larger blocks by cutting down on the syscalls. Mike Stone