X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 55C5DD710D for ; Wed, 24 Aug 2005 02:24:20 -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 64207-08 for ; Wed, 24 Aug 2005 05:24:15 +0000 (GMT) Received: from linuxworld.com.au (unknown [203.34.46.50]) by svr1.postgresql.org (Postfix) with ESMTP id BFD1BD7093 for ; Wed, 24 Aug 2005 02:24:13 -0300 (ADT) Received: from linuxworld.com.au (IDENT:swm@localhost.localdomain [127.0.0.1]) by linuxworld.com.au (8.13.2/8.13.2) with ESMTP id j7O5O7Ja005621; Wed, 24 Aug 2005 15:24:07 +1000 Received: from localhost (swm@localhost) by linuxworld.com.au (8.13.2/8.13.2/Submit) with ESMTP id j7O5O75h005618; Wed, 24 Aug 2005 15:24:07 +1000 X-Authentication-Warning: linuxworld.com.au: swm owned process doing -bs Date: Wed, 24 Aug 2005 15:24:07 +1000 (EST) From: Gavin Sherry X-X-Sender: swm@linuxworld.com.au To: Tom Lane Cc: PFC , William Yu , pgsql-performance@postgresql.org Subject: Re: Caching by Postgres In-Reply-To: <21392.1124860042@sss.pgh.pa.us> Message-ID: References: <20050823171045.12112.qmail@web51309.mail.yahoo.com> <20050823124323.710a9dd3.frank@wiles.org> <430B6DE3.6040109@sun.com> <21392.1124860042@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.002 required=5 tests=[AWL=0.002] X-Spam-Level: X-Archive-Number: 200508/375 X-Sequence-Number: 14122 On Wed, 24 Aug 2005, Tom Lane wrote: > Gavin Sherry writes: > > A filesystem could, in theory, help us by providing an API which allows us > > to tell the file system either: the way we'd like it to read ahead, the > > fact that we don't want it to read ahead or the way we'd like it to cache > > (or not cache) data. The thing is, most OSes provide interfaces to do this > > already and we make only little use of them (I'm think of > > madv_sequential(), madv_random(), POSIX fadvise(), the various flags to > > open() which AIX, HPUX, Solaris provide). > > Yeah ... the main reason we've not spent too much time on that sort of > stuff is that *it's not portable*. And with all due respect to Hans, > special tweaks for one filesystem are even less interesting than special > tweaks for one OS. Right. As an aside, it seems to me that if there is merit in all this low level interaction with the file system (not to mention the other platform specific microoptimisations which come up regularly on the lists) then the companies currently producing niche commercial releases of PostgreSQL should be taking advantage of them: if it increases performance, then there's a reason to buy as opposed to just downloading the OSS version. Gavin