Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 31379B5DC5D for ; Fri, 28 Oct 2011 12:35:35 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 30105-05 for ; Fri, 28 Oct 2011 15:35:29 +0000 (UTC) X-Greylist: delayed 00:07:01.967523 by SQLgrey-1.8.0-rc2 Received: from mail-ey0-f174.google.com (mail-ey0-f174.google.com [209.85.215.174]) by mail.postgresql.org (Postfix) with ESMTP id CB78AB5DC60 for ; Fri, 28 Oct 2011 12:35:28 -0300 (ADT) Received: by eye27 with SMTP id 27so3635589eye.19 for ; Fri, 28 Oct 2011 08:35:27 -0700 (PDT) Received: by 10.14.3.232 with SMTP id 80mr336596eeh.117.1319815704833; Fri, 28 Oct 2011 08:28:24 -0700 (PDT) Received: from mptpmbp.local (211-173.2-85.cust.bluewin.ch. [85.2.173.211]) by mx.google.com with ESMTPS id q28sm25625491eea.6.2011.10.28.08.28.23 (version=SSLv3 cipher=OTHER); Fri, 28 Oct 2011 08:28:24 -0700 (PDT) Message-ID: <4EAACA17.7010503@engene.se> Date: Fri, 28 Oct 2011 17:28:23 +0200 From: Marcus Engene User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.16) Gecko/20101125 Thunderbird/3.0.11 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: WAL in RAM Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201110/253 X-Sequence-Number: 45475 Hi list, Every now and then I have write peaks which causes annoying delay on my website. No particular reason it seems, just that laws of probability dictates that there will be peaks every now and then. Anyway, thinking of ways to make the peaks more bareable, I saw the new 9.1 feature to bypass WAL. Problems is mainly that some statistics tables ("x users clicked this link this month") clog the write cache, not more important writes. I could live with restoring a nightly dump of these tables and loose a days worth of logs. Though not keen on jumping over to early major versions an old idea of putting WAL in RAM came back. Not RAM in main memory but some thingie pretending to be a drive with proper battery backup. a) It seems to exist odd hardware with RAM modules and if lucky also battery b) Some drive manufactureres have done hybird ram-spindle drives (compare with possibly more common ssd-spindle hybrides). b) sounds slightly more appealing since it basically means I put everything on those drives and it magically is faster. The a) alternatives also seemed to be non ECC which is a no-no and disturbing. Does anyone here have any recommendations here? Pricing is not very important but reliability is. Thanks, Marcus