X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 81132D1B4E8 for ; Thu, 16 Oct 2003 05:52:32 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 33683-03 for ; Thu, 16 Oct 2003 02:52:01 -0300 (ADT) Received: from dbl.q-ag.de (dbl.q-ag.de [80.146.160.66]) by svr1.postgresql.org (Postfix) with ESMTP id C78D8D1B524 for ; Thu, 16 Oct 2003 02:51:55 -0300 (ADT) Received: from colorfullife.com (dbl [127.0.0.1]) by dbl.q-ag.de (8.12.3/8.12.3/Debian-6.6) with ESMTP id h9G5poN9024346; Thu, 16 Oct 2003 07:51:51 +0200 Message-ID: <3F8E31F5.9020703@colorfullife.com> Date: Thu, 16 Oct 2003 07:51:49 +0200 From: Manfred Spraul User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030701 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrew Dunstan Cc: pgsql-hackers@postgresql.org Subject: Re: Database Kernels and O_DIRECT References: <15890.1066232585@sss.pgh.pa.us> <3F8DB5D7.1060600@dunslane.net> In-Reply-To: <3F8DB5D7.1060600@dunslane.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/775 X-Sequence-Number: 45457 Andrew Dunstan wrote: > > I have wondered (somewhat fruitlessly) for several years about the > possibilities of special purpose lightweight file systems that could > relax some of the assumptions and checks used in general purpose file > systems. Such a thing might provide most of the benefits of a > "database kernel" without imposing anything extra on the database > application layer. CPU is usually cheap compared to disk io. There are two things that might be worth looking into: Oracle released their cluster filesystem (ocfs) as a GPL driver for Linux. It might be interesting to check how it performs if used for postgres, but I fear that it implicitely assumes that the bulk of the caching is performed by the database in user space. And using O_DIRECT for the WAL logs - the logs are never read. -- Manfred