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 36B3252CAE for ; Tue, 26 Jul 2005 16:11:55 -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 32814-10 for ; Tue, 26 Jul 2005 19:11:47 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.202]) by svr1.postgresql.org (Postfix) with ESMTP id 9DAFF52C8D for ; Tue, 26 Jul 2005 16:11:41 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id i21so15386wra for ; Tue, 26 Jul 2005 12:11:43 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=i0vJAm2Hw1eaDTX8YCd2ID81QhW+yt3qTgbg5MLVNlaxWHL1ncPToUoAW7co67gZEmasBWwfMqBrxWHXAD+RUn+tYvqxchh80Dxi3nmC2ACSD09tdM23uSoLueMeblAPTscE8p/X/OlJF+Ju5mAcxmMGNoKHmDMgIMbm/mctUzo= Received: by 10.54.106.1 with SMTP id e1mr30604wrc; Tue, 26 Jul 2005 12:11:43 -0700 (PDT) Received: by 10.54.86.15 with HTTP; Tue, 26 Jul 2005 12:11:42 -0700 (PDT) Message-ID: <33c6269f05072612113bd68434@mail.gmail.com> Date: Tue, 26 Jul 2005 15:11:42 -0400 From: Alex Turner Reply-To: Alex Turner To: John A Meinel Subject: Re: Cheap RAM disk? Cc: Postgresql Performance In-Reply-To: <42E6661D.3060304@arbash-meinel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <42E6661D.3060304@arbash-meinel.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.107 tagged_above=0 required=5 tests=AWL, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200507/399 X-Sequence-Number: 13640 Also seems pretty silly to put it on a regular SATA connection, when all that can manage is 150MB/sec. If you made it connection directly to 66/64-bit PCI then it could actualy _use_ the speed of the RAM, not to mention PCI-X. Alex Turner NetEconomist On 7/26/05, 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=3D2480 >=20 > 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= . >=20 > 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. >=20 > 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). >=20 > 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. >=20 > 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). >=20 > But it seems like this might be a decent way to improve insert > performance, without setting fsync=3Dfalse. >=20 > 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. >=20 > And if you had a UPS with detection of power failure, you could always > sync the ramdisk to a local partition before the power goes out. Though > you could do that with a normal in-memory ramdisk (tmpfs) without having > to buy the card. Though it does give you up-to an extra 4GB of ram, for > machines which have already maxed out their slots. >=20 > 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) >=20 > John > =3D:-> >=20 >=20 >=20 >