Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 9A2579FBF32 for ; Thu, 8 Mar 2007 14:40:48 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 35274-02 for ; Thu, 8 Mar 2007 14:40:44 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from elasmtp-junco.atl.sa.earthlink.net (elasmtp-junco.atl.sa.earthlink.net [209.86.89.63]) by postgresql.org (Postfix) with ESMTP id 4D1259FBF2E for ; Thu, 8 Mar 2007 14:40:44 -0400 (AST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=fTH3ClQULsR125cgARqBwi+cybLgCWQ/HwbMw7CAxSSW60flRUR6Z4DuKnXBazXU; h=Received:X-Mailer:Date:To:From:Subject:Cc:In-Reply-To:References:Mime-Version:Content-Type:Message-ID:X-ELNK-Trace:X-Originating-IP; Received: from [71.174.58.171] (helo=rpeace101.earthlink.net) by elasmtp-junco.atl.sa.earthlink.net with asmtp (TLSv1:AES256-SHA:256) (Exim 4.34) id 1HPNXd-0002mO-Rq; Thu, 08 Mar 2007 13:40:42 -0500 X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Thu, 08 Mar 2007 13:40:32 -0500 To: "Merlin Moncure" , "Magnus Hagander" From: Ron Subject: Re: compact flash disks? Cc: pgsql-performance@postgresql.org In-Reply-To: References: <20070308084823.GA7216@svr2.hagander.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Message-ID: X-ELNK-Trace: acd68a6551193be5d780f4a490ca69563f9fea00a6dd62bcdeafdc9e4872fefef5bd86fbefd2930c350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 71.174.58.171 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.336 tagged_above=0 required=5 tests=BAYES_50, DNS_FROM_RFC_ABUSE, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200703/171 X-Sequence-Number: 23576 At 09:11 AM 3/8/2007, Merlin Moncure wrote: >On 3/8/07, Magnus Hagander wrote: >>On Thu, Mar 08, 2007 at 06:24:35AM -0000, James Mansion wrote: >> > >> > In the long run, we are going to have to seriously rethink pg's use >> > of WAL as the way we implement MVCC as it becomes more and more of a >> > performance bottleneck. >> > We have WAL because Stonebreaker made an assumption about the future >> > dominance of optical media that has turned out to be false. >> > ...and it's been one of pg's big issues every since. >> >>Uh. pg didn't *have* WAL back when Stonebreaker was working on it. It >>was added in PostgreSQL 7.1, by Vadim. And it significantly increased >>performance at the time, since we no longer had to sync the datafiles >>after every transaction commit. >>(We also didn't have MVCC back in the Stonebreaker days - it was added >>in 6.5) Huh. I have to go re-read my references. Seems I've misremembered history. Thanks for correcting my mistake. >Exactly, and WAL services other purposes than minimizing the penalty >from writing to high latency media. WAL underlies PITR for example. Never argued with any of this. >Near-zero latency media is coming, eventually...and I don't think the >issue is reliability (catastrophic failure is extremely unlikely) but >cost. I think the poor write performance is not an issue because you >can assemble drives in a giant raid 0 (or even 00 or 000) which will >blow away disk based raid 10 systems at virtually everything. Have you considered what the $cost$ of that much flash RAM would be? >Solid State Drives consume less power (a big deal in server farms) and >the storage density and life-span will continue to improve. I give it >five years (maybe less) before you start to see SSD penetration in a >big way. It will simply become cheaper to build a box with SSD than >without since you won't need to buy as much RAM, draws less power, and >is much more reliable. Don't bet on it. HDs 2x in density faster than RAM does, even flash RAM, and have a -much- lower cost per bit. ...and it's going to stay that way for the foreseeable future. ATM, I can buy a 500GB 7200 rpm SATA II HD w/ a 5 yr warranty for ~$170 US per HD. 1TB HDs of that class cost ~$350-$400 US per. (...and bear in mind the hybrid HDs coming out later this year that offer the best of both HD and flash technologies at very close to current HD costs per bit.) The 128GB flash RAM SSDs coming out later this year are going to cost 4x - 10x those HD prices... 4+ decades of history shows that initial acquisition cost is =by far= the primary deciding factor in IT spending. QED: SSDs are going to remain a niche product unless or until Something Drastic (tm) happens to the economics and storage requirements of IT. >Disk drives will displace tape as low speed archival storage but will >probably live on in super high storage enterprise environments. Again, don't bet on it. Tape 2x in density even faster than HD does and has an even lower cost per bit. >my 0.02$, as usual, >merlin