X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 6A89FD1B4F1 for ; Sun, 5 Oct 2003 23:51:23 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 34204-09 for ; Sun, 5 Oct 2003 20:50:39 -0300 (ADT) Received: from bob.samurai.com (bob.samurai.com [205.207.28.75]) by svr1.postgresql.org (Postfix) with ESMTP id 8473CD1B520 for ; Sun, 5 Oct 2003 20:50:36 -0300 (ADT) Received: from 6-allhosts (d226-85-166.home.cgocable.net [24.226.85.166]) by bob.samurai.com (Postfix) with ESMTP id 9BFC21D6F; Sun, 5 Oct 2003 19:50:39 -0400 (EDT) Subject: Re: reindex/vacuum locking/performance? From: Neil Conway To: Tom Lane Cc: Andrew Sullivan , PostgreSQL Performance In-Reply-To: <15813.1065397428@sss.pgh.pa.us> References: <60d6de9fah.fsf@dev6.int.libertyrms.info> <20031004152241.GL580@libertyrms.info> <1065396767.466.12.camel@tokyo> <15813.1065397428@sss.pgh.pa.us> Content-Type: text/plain Message-Id: <1065397835.471.17.camel@tokyo> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Sun, 05 Oct 2003 19:50:35 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/165 X-Sequence-Number: 3913 On Sun, 2003-10-05 at 19:43, Tom Lane wrote: > This would be relatively easy to fix as far as our own buffering is > concerned, but the thing that's needed to make it really useful is > to prevent caching of seqscan-read pages in the kernel disk buffers. True. > I don't know any portable way to do that :-( For the non-portable way of doing this, are you referring to O_DIRECT? Even if it isn't available everywhere, it might be worth considering this at least for the platforms on which it is supported. -Neil