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 B706752E6A for ; Tue, 26 Jul 2005 14:04:14 -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 89785-06 for ; Tue, 26 Jul 2005 17:04:05 +0000 (GMT) Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by svr1.postgresql.org (Postfix) with ESMTP id AA24852C9E for ; Tue, 26 Jul 2005 14:04:04 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id DCB2B30B42; Tue, 26 Jul 2005 19:11:18 +0200 (MET DST) From: Chris Browne X-Newsgroups: pgsql.performance Subject: Re: Cheap RAM disk? Date: Tue, 26 Jul 2005 12:51:14 -0400 Organization: cbbrowne Computing Inc Lines: 64 Message-ID: <60u0ih1pfh.fsf@dba2.int.libertyrms.com> References: <42E6661D.3060304@arbash-meinel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: usenet@news.hub.org User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.17 (Jumbo Shrimp, linux) Cancel-Lock: sha1:9/1Xq5tnQ92R1zfjK80854jEktA= To: pgsql-performance@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.124 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/389 X-Sequence-Number: 13630 john@arbash-meinel.com (John A Meinel) writes: > 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 And the review shows that it's not *all* that valuable for many of the cases they looked at. > 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'm a little leary as it is definitely a version 1.0 product (it is > still using an FPGA as the controller, so they were obviously pushing > to get the card into production). What disappoints me is that nobody has tried the CF/RAM answer; rather than putting a hard drive on the board, you put on some form of flash device (CompactFlash or such), where if power fails, it pushes data onto the CF. That ought to be cheaper (both in terms of hardware cost and power consumption) than using a hard disk. > But it seems like this might be a decent way to improve insert > performance, without setting fsync=false. That's the case which might prove Ludicrously Quicker than any of the sample cases in the review. > Probably it should see some serious testing (as in power spikes/pulled > plugs, etc). I know the article made some claim that if you actually > pull out the card it goes into "high consumption mode" which is > somehow greater than if you leave it in the slot with the power > off. Which to me seems like a lot of bull, and really means the 16h is > only under best-case circumstances. But even 1-2h is sufficient to > handle a simple power outage. Certainly. > Anyway, I thought I would mention it to the list, to see if anyone > else has heard of it, or has any thoughts on the matter. I'm sure > there are some people who are using more expensive ram disks, maybe > they have some ideas about what this device is missing. (other than > costing about 1/10th the price) Well, if it hits a "2.0" version, it may get interesting... -- (format nil "~S@~S" "cbbrowne" "acm.org") http://www.ntlug.org/~cbbrowne/sap.html Rules of the Evil Overlord #78. "I will not tell my Legions of Terror "And he must be taken alive!" The command will be: ``And try to take him alive if it is reasonably practical.''"