Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 752D86321BF for ; Sun, 9 May 2010 05:45:27 -0300 (ADT) 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 16853-05 for ; Sun, 9 May 2010 08:45:20 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mail.postgresql.org (Postfix) with ESMTP id DC8266311A6 for ; Sun, 9 May 2010 05:45:19 -0300 (ADT) Received: by bwz8 with SMTP id 8so1357013bwz.3 for ; Sun, 09 May 2010 01:45:18 -0700 (PDT) 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; bh=gHl+BR1EVBRQVB+0W31fuCo+NKVMdOh/Gh3IDASxykk=; b=rdwWsKVbrsL3bgLSOZwcf+4fS7toE3AZvZaMy2tuImVj5qDXFLQq+c3+YnJW37iUkk 8Sfou/KLocz0OAorJQ+BB0dAOz3dw9nG0unGqcJm1aCbo/mL6KRyztB7LwoaVMPLiea+ e56ZNEBa+MrE9aFIL1yeTWvkgLz2X6S+KKiIM= 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; b=AeCculIzWykWWQTDcbsxoi2bzVDn10m5K5GdoeR8cGUIfJkkf5LYHhCSGGWIiLpUWk OQhIt6p3IjwuZcSIwkBFGys0zngpk9n2G4mXWjYyA4rv5CDS7QvtXUwyL4zMZkghOn+q 13fmjZds4F4vgwXJsxa/hxIJHOtPASnXA5RKc= MIME-Version: 1.0 Received: by 10.204.150.77 with SMTP id x13mr1461322bkv.19.1273394718150; Sun, 09 May 2010 01:45:18 -0700 (PDT) Received: by 10.204.66.133 with HTTP; Sun, 9 May 2010 01:45:18 -0700 (PDT) In-Reply-To: <4BE4ABC9.6040106@agliodbs.com> References: <4BE4ABC9.6040106@agliodbs.com> Date: Sun, 9 May 2010 10:45:18 +0200 Message-ID: Subject: Re: 8K recordsize bad on ZFS? From: Dimitri To: Josh Berkus Cc: pgsql-performance@postgresql.org, Jignesh Shah Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201005/34 X-Sequence-Number: 38618 Josh, it'll be great if you explain how did you change the records size to 128K? - as this size is assigned on the file creation and cannot be changed later - I suppose that you made a backup of your data and then process a full restore.. is it so? Rgds, -Dimitri On 5/8/10, Josh Berkus wrote: > Jignesh, All: > > Most of our Solaris users have been, I think, following Jignesh's advice > from his benchmark tests to set ZFS page size to 8K for the data zpool. > However, I've discovered that this is sometimes a serious problem for > some hardware. > > For example, having the recordsize set to 8K on a Sun 4170 with 8 drives > recently gave me these appalling Bonnie++ results: > > Version 1.96 ------Sequential Output------ --Sequential Input- > --Random- > Concurrency 4 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- > --Seeks-- > Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP > /sec %CP > db111 24G 260044 33 62110 17 89914 15 > 1167 25 > Latency 6549ms 4882ms 3395ms > 107ms > > I know that's hard to read. What it's saying is: > > Seq Writes: 260mb/s combined > Seq Reads: 89mb/s combined > Read Latency: 3.3s > > Best guess is that this is a result of overloading the array/drives with > commands for all those small blocks; certainly the behavior observed > (stuttering I/O, latency) is in line with that issue. > > Anyway, since this is a DW-like workload, we just bumped the recordsize > up to 128K and the performance issues went away ... reads up over 300mb/s. > > -- > -- Josh Berkus > PostgreSQL Experts Inc. > http://www.pgexperts.com > > -- > Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-performance >