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 9616152B12 for ; Sat, 9 Jul 2005 18:48:52 -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 92895-08 for ; Sat, 9 Jul 2005 21:48:43 +0000 (GMT) Received: from smtp-out5.blueyonder.co.uk (smtp-out5.blueyonder.co.uk [195.188.213.8]) by svr1.postgresql.org (Postfix) with ESMTP id E979F52B20 for ; Sat, 9 Jul 2005 18:48:41 -0300 (ADT) Received: from [192.168.1.10] ([82.43.93.192]) by smtp-out5.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Sat, 9 Jul 2005 22:49:26 +0100 In-Reply-To: <6EE64EF3AB31D5448D0007DD34EEB3415C2CFE@Herge.rcsinc.local> References: <6EE64EF3AB31D5448D0007DD34EEB3415C2CFE@Herge.rcsinc.local> Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <41DED96F-84A2-436A-86C7-B3C2A3210591@advfn.com> Cc: , "Stuart Bishop" , Content-Transfer-Encoding: 7bit From: Alex Stapleton Subject: Re: Mount database on RAM disk? Date: Sat, 9 Jul 2005 22:48:43 +0100 To: Merlin Moncure X-Mailer: Apple Mail (2.730) X-OriginalArrivalTime: 09 Jul 2005 21:49:26.0686 (UTC) FILETIME=[139A23E0:01C584D0] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200507/101 X-Sequence-Number: 13342 On 8 Jul 2005, at 20:21, Merlin Moncure wrote: >> Stuart, >> >> >>> I'm putting together a road map on how our systems can scale as our >>> > load > >>> increases. As part of this, I need to look into setting up some fast >>> read only mirrors of our database. We should have more than enough >>> > RAM > >>> to fit everything into memory. I would like to find out if I could >>> expect better performance by mounting the database from a RAM disk, >>> > or > >>> if I would be better off keeping that RAM free and increasing the >>> effective_cache_size appropriately. >>> >> >> If you're accessing a dedicated, read-only system with a database >> > small > >> enough to fit in RAM, it'll all be cached there anyway, at least on >> > Linux > >> and BSD. You won't be gaining anything by creating a ramdisk. >> > > > > ditto windows. > > Files cached in memory are slower than reading straight from memory > but > not nearly enough to justify reserving memory for your use. In other > words, your O/S is a machine with years and years of engineering > designed best how to dole memory out to caching and various processes. > Why second guess it? Because sometimes it gets it wrong. The most brutal method is occasionally the most desirable. Even if it not the "right" way to do it. > Merlin > > ---------------------------(end of > broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings >