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 CFFDC52EB4 for ; Tue, 26 Jul 2005 14:43:10 -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 95343-10 for ; Tue, 26 Jul 2005 17:43:09 +0000 (GMT) Received: from gghcwest.com (adsl-71-128-90-172.dsl.pltn13.pacbell.net [71.128.90.172]) by svr1.postgresql.org (Postfix) with ESMTP id 1D32652CB6 for ; Tue, 26 Jul 2005 14:43:08 -0300 (ADT) Received: from toonses.gghcwest.com (toonses.gghcwest.com [192.168.168.115]) by gghcwest.com (8.12.10/8.12.9) with ESMTP id j6QHgTmd017672; Tue, 26 Jul 2005 10:42:30 -0700 Received: from jwb by toonses.gghcwest.com with local (Exim 4.50) id 1DxTRc-0003KL-JI; Tue, 26 Jul 2005 10:42:20 -0700 Subject: Re: Cheap RAM disk? From: "Jeffrey W. Baker" To: John A Meinel Cc: Postgresql Performance In-Reply-To: <42E6661D.3060304@arbash-meinel.com> References: <42E6661D.3060304@arbash-meinel.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 26 Jul 2005 10:42:19 -0700 Message-Id: <1122399740.12728.1.camel@toonses.gghcwest.com> Mime-Version: 1.0 X-Mailer: Evolution 2.3.5.1 X-Virus-Scanned: by amavisd-new at hub.org X-Archive-Number: 200507/391 X-Sequence-Number: 13632 On Tue, 2005-07-26 at 11:34 -0500, John A Meinel wrote: > I saw a review of a relatively inexpensive RAM disk over at > anandtech.com, the Gigabyte i-RAM > http://www.anandtech.com/storage/showdoc.aspx?i=2480 > > Basically, it is a PCI card, which takes standard DDR RAM, and has a > SATA port on it, so that to the system, it looks like a normal SATA drive. > > The card costs about $100-150, and you fill it with your own ram, so for > a 4GB (max size) disk, it costs around $500. Looking for solid state > storage devices, the cheapest I found was around $5k for 2GB. > > Gigabyte claims that the battery backup can last up to 16h, which seems > decent, if not really long (the $5k solution has a built-in harddrive so > that if the power goes out, it uses the battery power to copy the > ramdisk onto the harddrive for more permanent storage). > > Anyway, would something like this be reasonable as a drive for storing > pg_xlog? With 4GB you could have as many as 256 checkpoint segments. I haven't tried this product, but the microbenchmarks seem truly slow. I think you would get a similar benefit by simply sticking a 1GB or 2GB DIMM -- battery-backed, of course -- in your RAID controller. -jwb