Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 760691337B47 for ; Tue, 4 Jan 2011 12:49:12 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 42352-05 for ; Tue, 4 Jan 2011 16:49:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bw0-f46.google.com (mail-bw0-f46.google.com [209.85.214.46]) by mail.postgresql.org (Postfix) with ESMTP id C9CF11337B39 for ; Tue, 4 Jan 2011 12:49:02 -0400 (AST) Received: by bwz15 with SMTP id 15so14717445bwz.19 for ; Tue, 04 Jan 2011 08:49:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=cVV9zzde56Ym+gP/ROrg5vuDxRtG29Xf3gzJRvo61tc=; b=c24CdTD5aub2/Jp4MEXx+7G11fs0eveZqB7n48dKWYWXRyKar1XH1MBJgRtdNvrNLM Y3LwJBFa27qWAXlTFABb78JKNsB8d75ZjjpJMWXoqIwdMcV071OzYCjlMsskz9CQM4MN aXfiHlSbR4i1sLznQXLW66nq9wEDW/MunsFJA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=SL+Dk+gp77uUMK/pyKI97Lmw5kStdgOuvo2y6e8EYuZ0X5yUOnHrwd6HnPu2cHtQa0 X6Dp8xjVwAVz57LjMNcy0foO5dzrfyckq1ddaN35gmzF/BneYZ/I71SjiLgJDYfpCpo0 WHLZjO+NWduzMHphPPydAuipRPXJi+Nul1FwI= MIME-Version: 1.0 Received: by 10.204.73.17 with SMTP id o17mr503996bkj.26.1294159739974; Tue, 04 Jan 2011 08:48:59 -0800 (PST) Received: by 10.204.26.204 with HTTP; Tue, 4 Jan 2011 08:48:59 -0800 (PST) In-Reply-To: <4D228247.9020901@2ndquadrant.com> References: <4D0EFC02.7040004@vmsinfo.com> <5509F55C-FA66-4813-89C3-B2E62F6E8F49@Nasby.net> <4D21F68E.9070004@vmsinfo.com> <4D228247.9020901@2ndquadrant.com> Date: Tue, 4 Jan 2011 11:48:59 -0500 Message-ID: Subject: Re: Question: BlockSize > 8192 with FusionIO From: Merlin Moncure To: Greg Smith Cc: "Strange, John W" , "pgsql-performance@postgresql.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.598 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201101/12 X-Sequence-Number: 41799 On Mon, Jan 3, 2011 at 9:13 PM, Greg Smith wrote: > Strange, John W wrote: >> >> Has anyone had a chance to recompile and try larger a larger blocksize >> than 8192 with pSQL 8.4.x? > > While I haven't done the actual experiment you're asking about, the probl= em > working against you here is how WAL data is used to protect against parti= al > database writes. =A0See the documentation for full_page_writes at > http://www.postgresql.org/docs/current/static/runtime-config-wal.html > =A0Because full size copies of the blocks have to get written there, atte= mpts > to chunk writes into larger pieces end up requiring a correspondingly lar= ger > volume of writes to protect against partial writes to those pages. =A0You > might get a nice efficiency gain on the read side, but the situation when > under a heavy write load (the main thing you have to be careful about wit= h > these SSDs) is much less clear. most flash drives, especially mlc flash, use huge blocks anyways on physical level. the numbers claimed here (http://www.fusionio.com/products/iodrive/) (141k write iops) are simply not believable without write buffering. i didn't see any note of how fault tolerance is maintained through the buffer (anyone know?). assuming they do buffer, i would expect a smaller blocksize would be better/easier on the ssd, since this would mean less gross writing, higher maximum throughput, and less wear and tear on the flash; the advantages of the larger blocksize are very hardware driven and already managed by the controller. if they don't buffer (again, I'm very skeptical this is the case), a larger block size, possibly even a much larger block size (like 256k) would be an interesting test. i'm pretty skeptical about the fusion i/o product generally, because i don't think the sata interface is a bottleneck save for read caching, and the o/s is already buffering reads. the storage medium is still the bottleneck for the most part (even if it's much faster at certain things). note fusion is still useful for some things, but the nice is narrower than it looks on the surface. merlin