Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 53FA99FB9BF for ; Thu, 8 Mar 2007 10:11: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 69570-03 for ; Thu, 8 Mar 2007 10:11:46 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by postgresql.org (Postfix) with ESMTP id 1DE5E9FB982 for ; Thu, 8 Mar 2007 10:11:43 -0400 (AST) Received: by nf-out-0910.google.com with SMTP id x4so634306nfb for ; Thu, 08 Mar 2007 06:11:42 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=iQzIkcEwWg158YQWDXVgtN095cr6CgtO6uZxO3vUIcFClEgDs9N/Ou8360K6k1onXcKnDSaFNdPvjBl4AtNWxaAaMmbaqfc9BoxnS1zTvW3v0ZX3dULrFtOFBQkVfvBg3L37Iwy8oLlr185pZqSo1dyHXDd+nexHauUHYIgoqhM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RgO0wYVm7sYgYaI5RFonKwO9GLvdXwadC+iLZq42V/H4qL2k/xlBEEu79eJW1+3SB3VV8/GIsFjeBvC7RO1RkOqoBCq9Yc4KUj7ozmWJfgBCp/4EjHO/AlRgApOqN91Sy03IOCq1PJxJLgVnbyWs9zRcutYEIulrIrwaSWQlnQ4= Received: by 10.78.183.15 with SMTP id g15mr50900huf.1173363101238; Thu, 08 Mar 2007 06:11:41 -0800 (PST) Received: by 10.78.35.18 with HTTP; Thu, 8 Mar 2007 06:11:41 -0800 (PST) Message-ID: Date: Thu, 8 Mar 2007 09:11:41 -0500 From: "Merlin Moncure" To: "Magnus Hagander" Subject: Re: compact flash disks? Cc: "James Mansion" , Ron , pgsql-performance@postgresql.org In-Reply-To: <20070308084823.GA7216@svr2.hagander.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070308084823.GA7216@svr2.hagander.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/165 X-Sequence-Number: 23570 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) Exactly, and WAL services other purposes than minimizing the penalty from writing to high latency media. WAL underlies PITR for example. 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. 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. Disk drives will displace tape as low speed archival storage but will probably live on in super high storage enterprise environments. my 0.02$, as usual, merlin