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 81B958B9F68 for ; Sat, 19 Feb 2005 04:11:14 +0000 (GMT) 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 27487-02 for ; Sat, 19 Feb 2005 04:11:12 +0000 (GMT) Received: from candle.pha.pa.us (candle.pha.pa.us [64.139.89.126]) by svr1.postgresql.org (Postfix) with ESMTP id ACFAE8B9F5C for ; Sat, 19 Feb 2005 04:11:10 +0000 (GMT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id j1J4B8T15005; Fri, 18 Feb 2005 23:11:08 -0500 (EST) From: Bruce Momjian Message-Id: <200502190411.j1J4B8T15005@candle.pha.pa.us> Subject: Re: seq scan cache vs. index cache smackdown In-Reply-To: <6BCB9D8A16AC4241919521715F4D8BCE4768A7@algol.sollentuna.se> To: Magnus Hagander Date: Fri, 18 Feb 2005 23:11:08 -0500 (EST) Cc: Merlin Moncure , Josh Berkus , pgsql-performance@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.012 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/268 X-Sequence-Number: 10597 Magnus Hagander wrote: > I don't think that's correct either. Scatter/Gather I/O is used to SQL > Server can issue reads for several blocks from disks into it's own > buffer cache with a single syscall even if these buffers are not > sequential. It did make significant performance improvements when they > added it, though. > > (For those not knowing - it's ReadFile/WriteFile where you pass an array > of "this many bytes to this address" as parameters) Isn't that like the BSD writev()/readv() that Linux supports also? Is that something we should be using on Unix if it is supported by the OS? -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073